home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / make-367.lha / make-3.67 / ChangeLog < prev    next >
Text File  |  1993-05-22  |  259KB  |  6,921 lines

  1. Sat May 22 16:15:18 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2.  
  3.     * Version 3.67.
  4.  
  5.     * file.c (remove_intermediates): Don't write extra space after `rm'.
  6.  
  7.     * main.c (struct command_switch.type): Remove `usage_and_exit'.
  8.     (print_usage_flag): New variable.
  9.     (switches: --help): Make type `flag', to set print_usage_flag.
  10.     (init_switches): Remove `usage_and_exit' case.
  11.     (decode_switches): Likewise.
  12.     (decode_switches): Print usage if print_usage_flag is set.
  13.     When printing usage, die with status of BAD.
  14.     (main): Die with 0 if print_version_flag.
  15.  
  16. Fri May 21 16:09:28 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  17.  
  18.     * Version 3.66.
  19.  
  20. Wed May 19 21:30:44 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  21.  
  22.     * compatMakefile (installdirs): New target.
  23.     (install): Depend on it.
  24.  
  25. Sun May 16 20:15:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  26.  
  27.     * Version 3.65.2.
  28.  
  29. Fri May 14 16:40:09 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  30.  
  31.     * vpath.c (construct_vpath_list): In removal loop for DIRPATH==0,
  32.     set LASTPATH to PATH, not NEXT.
  33.  
  34.     * dir.c (read_dirstream): Break out of loop after incrementing
  35.     DS->buckets such that it reaches DIRFILE_BUCKETS; avoid trying to
  36.     dereference DS->contents->files[DIRFILE_BUCKETS].
  37.  
  38.     * read.c (read_makefile): Clear no_targets after reading a
  39.     targetful rule line.
  40.  
  41.     * main.c (main): If print_version_flag is set, exit after printing
  42.     the version.
  43.     (switches): Change --version docstring to say it exits.
  44.  
  45.     * make.h [butterfly]: #undef POSIX.
  46.  
  47. Wed May 12 15:20:21 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  48.  
  49.     * Version 3.65.1.
  50.  
  51.     * arscan.c (ar_scan) [! AIAMAG]: Don't declare LONG_NAME.
  52.     [AIAMAG]: Pass TRUNCATE flag arg to (*FUNCTION), always zero.
  53.  
  54.     * function.c (handle_function): Use fatal instead of
  55.     makefile_fatal when reading_filename is nil.
  56.  
  57.     * configure.in: Add AC_GETGROUPS_T.
  58.     * job.c (search_path): Use GETGROUPS_T in place of gid_t.
  59.  
  60. Sun May  9 15:41:25 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  61.  
  62.     * Version 3.65.
  63.  
  64. Fri May  7 18:34:56 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  65.  
  66.     * function.c (handle_function): Fatal for unmatched paren.
  67.  
  68. Thu May  6 16:13:41 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  69.  
  70.     * Version 3.64.3.
  71.  
  72.     * commands.c (handling_fatal_signal): New variable.
  73.     (fatal_error_signal): Set it.
  74.     * job.c (reap_children): Avoid nonreentrant operations if that is set.
  75.     * make.h: Declare handling_fatal_signal.
  76.  
  77.     * expand.c (reference_variable): New function, snippet of code
  78.     broken out of simple-reference case of variable_expand.
  79.     (variable_expand): Use it for simple refs.
  80.     (variable_expand): When checking for a computed variable name,
  81.     notice a colon that comes before the final CLOSEPAREN.  Expand
  82.     only up to the colon, and then replace the pending text with a
  83.     copy containing the expanded name and fall through to subst ref
  84.     handling.
  85.     (variable_expand): Don't bother expanding the name if a colon
  86.     appears before the first $.
  87.     (expand_argument): Use alloca instead of savestring.
  88.     (variable_expand): For subst ref, expand both sides of = before
  89.     passing to [pat]subst_expand.  Use find_percent instead of lindex
  90.     to check the lhs for a %.
  91.  
  92. Wed May  5 14:45:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  93.  
  94.     * Version 3.64.2.
  95.  
  96. Mon May  3 17:00:32 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  97.  
  98.     * arscan.c (ar_name_equal) [AIAMAG]: Abort if TRUNCATED is nonzero.
  99.  
  100.     * read.c (read_makefile): Pass extra arg of 1 to parse_file_seq,
  101.     not to multi_glob.
  102.  
  103. Thu Apr 29 19:47:33 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  104.  
  105.     * Version 3.64.1.
  106.  
  107.     * arscan.c (ar_scan): New local flag var LONG_NAME.  Set it when
  108.     we read the member name in any of the fashions that allow it to be
  109.     arbitrarily long.  Pass its negation to FUNCTION.
  110.     (describe_member): Take TRUNCATED from ar_scan and print it.
  111.     (ar_name_equal): Take new arg TRUNCATED; if nonzero, compare only
  112.     the first sizeof (struct ar_hdr.ar_name) chars.
  113.     (ar_member_pos): Take TRUNCATED from ar_scan, pass to ar_name_equal.
  114.     * ar.c (ar_member_date_1): Likewise.
  115.  
  116. Wed Apr 28 21:18:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  117.  
  118.     * job.c (reap_children): Before calling start_job_command to start
  119.     the next command line, reset C->remote by calling start_remote_job_p.
  120.  
  121. Mon Apr 26 15:56:15 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  122.  
  123.     * arscan.c (ar_scan): New local var NAMEMAP.
  124.     In loop, rename NAME to NAMEBUF; new var NAME is a pointer; new
  125.     flag IS_NAMEMAP.  When extracting the member name, always put a
  126.     null at its end first.  If the name is "//" or "/ARFILENAMES", set
  127.     IS_NAMEMAP.  If we have already read in NAMEMAP, and NAME looks
  128.     like " /N", get full name from NAMEMAP+N.
  129.     Else if NAME looks like "#1/N", read N chars from the
  130.     elt data to be the full name.  At end of loop, if IS_NAMEMAP, read
  131.     the elt's data into alloca'd NAMEMAP.
  132.     (ar_name_equal): #if 0 truncating code.
  133.  
  134.     * make.h: Don't declare vfork at all.  It returns int anyway,
  135.     unless <unistd.h> declared it; and we conflicted with some systems.
  136.  
  137.     * main.c (define_makeflags): If FLAGSTRING[1] is '-', define
  138.     MAKEFLAGS to all of FLAGSTRING, not &FLAGSTRING[1].  Don't want to
  139.     define it to something like "-no-print-directory".
  140.     Use %g format instead of %f for floating-valued things.
  141.  
  142. Thu Apr 22 18:40:58 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  143.  
  144.     * GNUmakefile (Makefile.in): Use a substitution ref on nolib-deps
  145.     to change remote-%.dep to remote-stub.dep.
  146.  
  147. Wed Apr 21 15:17:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  148.  
  149.     * Version 3.64.
  150.  
  151. Fri Apr 16 14:22:22 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  152.  
  153.     * compatMakefile (install): Remove - prefix from chgrp+chmod.
  154.  
  155.     * Version 3.63.8.
  156.  
  157. Thu Apr 15 18:24:07 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  158.  
  159.     * acconfig.h: New file; contains "#undef SCCS_GET" for autoheader.
  160.     * configure.in: If /usr/sccs/get exists, define SCCS_GET to that,
  161.     else to "get".
  162.     * default.c (default_variables): Set GET to macro SCCS_GET.
  163.  
  164.     * read.c (parse_file_seq): Take extra arg STRIP; strip `./' only
  165.     if nonzero.  I hope this is the last time this argument is added
  166.     or removed.
  167.     (read_makefile): Pass it 1 when parsing include file names.
  168.     Pass it 1 when parsing target file names.
  169.     Pass it 1 when parsing static pattern target pattern names.
  170.     * rule.c (install_pattern_rule): Pass it 1 when parsing rule deps.
  171.     * default.c (set_default_suffixes): Pass it 1 when parsing
  172.     default_suffixes.
  173.     * function.c (string_glob): Pass it 0 here.
  174.  
  175. Wed Apr 14 11:32:05 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  176.  
  177.     * misc.c (log_access): New function.
  178.     ({init,user,make,child}_access): Call it.
  179.     (child_access): Abort if !access_inited.
  180.  
  181.     * main.c (switches: --no-print-directory): Use 1 instead of -1 for
  182.     single-letter option.
  183.     (init_switches, decode_switches, define_makeflags): An option with
  184.     no single-letter version is no longer indicated by a value of -1;
  185.     instead a value that is !isalnum.
  186.     (init_switches): Don't put such switches into the string, only
  187.     into the long_option table.
  188.  
  189.     * make.h [!NSIG] [!_NSIG]: #define NSIG 32.
  190.  
  191.     * job.c [HAVE_WAITPID]: Remove #undef HAVE_UNION_WAIT.  AIX's
  192.     bsdcc defined WIF* to use union wait.
  193.  
  194.     * main.c (struct command_switch): Change member `c' to type int.
  195.     (switches): Make const.
  196.     (decode_switches): Use `const struct command_switch *'.
  197.     (define_makeflags): Likewise.
  198.  
  199.     * default.c (default_suffix_rules): Add `-o $@' to makeinfo rules.
  200.  
  201. Mon Apr 12 12:30:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  202.  
  203.     * Version 3.63.7.
  204.  
  205.     * configure.in (AC_HAVE_HEADERS): Check for string.h and memory.h.
  206.     Removed AC_MEMORY_H.
  207.     * make.h [USG, NeXT]: Don't test these.
  208.     [HAVE_STRING_H]: Test this to include string.h and define ANSI_STRING.
  209.     [HAVE_MEMORY_H]: Test this instead of NEED_MEMORY_H.
  210.     [! ANSI_STRING]: Put decls of bcopy et al here.
  211.     [sparc]: Don't test this for alloca.h; HAVE_ALLOCA_H is sufficient.
  212.     [HAVE_SIGSETMASK]: Test this rather than USG.
  213.     [__GNU_LIBRARY__ || POSIX]: Don't #include <unistd.h> again.
  214.     * main.c (main): Handle SIGCHLD if defined, and SIGCLD if defined.
  215.     It doesn't hurt to do both if they are both defined, and testing
  216.     USG is useless.
  217.     * dir.c: Rationalize directory header conditionals.
  218.     * arscan.c [HAVE_FCNTL_H]: Test this rather than USG || POSIX.
  219.  
  220.     * default.c (default_suffixes): Add `.txinfo'.
  221.     (default_suffix_rules): Add `.txinfo.info' and `.txinfo.dvi' rules.
  222.  
  223.     * variable.c (try_variable_definition): Replace RECURSIVE flag
  224.     with enum FLAVOR, which can be simple, recursive, or append.
  225.     Recognize += as append flavor.  Set new variable VALUE in a switch
  226.     on FLAVOR.  For append flavor, prepend the variable's old value.
  227.     If the variable was previously defined recursive, set FLAVOR to
  228.     recursive; if it was defined simple, expand the new value before
  229.     appending it to the old value.  Pass RECURSIVE flag to
  230.     define_variable iff FLAVOR == recursive.
  231.  
  232.     * variable.c (try_variable_definition): Use alloca and bcopy for
  233.     NAME, instead of savestring.  Might as well use stack storage
  234.     since we free it immediately anyway.
  235.  
  236. Thu Apr  8 18:04:43 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  237.  
  238.     * job.c (start_waiting_jobs): Move decl of JOB outside of loop.
  239.  
  240.     * main.c (define_makeflags): Rename `struct flag' member `switch'
  241.     to `cs', which is not a reserved word.
  242.  
  243. Wed Apr  7 15:30:51 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  244.  
  245.     * job.c (new_job): Call start_waiting_jobs first thing.
  246.     (start_waiting_job): Changed return type from void to int.
  247.     Return 0 when putting the child on the waiting_jobs chain.
  248.     (start_waiting_jobs): Don't check load and job_slots here.
  249.     Always take a job off the chain and call start_waiting_job on it;
  250.     give up and return when start_waiting_job returns zero.
  251.  
  252.     * main.c (define_makeflags: struct flag): Change member `char c' to
  253.     `struct command_switch *switch'.
  254.     (ADD_FLAG): Set that to CS instead of CS->c.
  255.     If CS->c is -1, increment FLAGSLEN for the long name.
  256.     When writing out FLAGS, handle FLAGS->switch->c == -1 and write
  257.     the long name instead.
  258.  
  259.     * compatMakefile (stamp-config): New target of old config.h rule.
  260.     Touch stamp-config after running config.status.
  261.     (config.h): Just depend on stamp-config, and have empty commands.
  262.  
  263. Mon Apr  5 20:14:02 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  264.  
  265.     * job.c [HAVE_WAITPID]: #undef HAVE_UNION_WAIT.
  266.  
  267.     * configure.in (AC_HAVE_FUNCS): Check for psignal.
  268.  
  269. Fri Apr  2 17:15:46 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  270.  
  271.     * main.c (long_option_aliases): Remove "new"; it is already an
  272.     unambiguous prefix of "new-file".
  273.  
  274. Sun Mar 28 16:57:17 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  275.  
  276.     * Version 3.63.6.
  277.  
  278. Wed Mar 24 14:26:19 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  279.  
  280.     * vpath.c (selective_vpath_search): When adding the
  281.     name-within-directory at the end of NAME, and we don't add a
  282.     slash, don't copy FILENAME in one char too far into NAME.
  283.  
  284.     * variable.c (define_automatic_variables): Find default_shell's
  285.     length with strlen, not numerology.
  286.  
  287. Wed Mar 17 20:02:27 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  288.  
  289.     * main.c (define_makeflags): Add the elts of a string option in
  290.     reverse order, so they come out right when reversed again.
  291.  
  292. Fri Mar 12 15:38:45 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  293.  
  294.     * compatMakefile (make.info): Use `-o make.info'.
  295.  
  296. Thu Mar 11 14:13:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  297.  
  298.     * compatMakefile (REMOTE): Set to @REMOTE@; change comments to
  299.     reflect new use.
  300.     (objs): Replace remote.o with remote-$(REMOTE).o.
  301.     (srcs): Replace remote.c with remote-$(REMOTE).c.
  302.     (remote.o): Rule removed.
  303.  
  304.     * configure.in (REMOTE): Subst this in Makefile et al; default "stub".
  305.     Use AC_WITH to grok --with-customs arg to set REMOTE=cstms.
  306.     * GNUmakefile (build.sh.in): Filter out remote-% from objs list.
  307.     * build.template (REMOTE): New var; set to @REMOTE@.
  308.     (objs): Add remote-${REMOTE}.o.
  309.  
  310. Wed Mar 10 15:12:24 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  311.  
  312.     * Version 3.63.5.
  313.  
  314.     * implicit.c (pattern_search): Fix "dependent"->"dependency" in
  315.     "Rejecting impossible" -d msg.
  316.  
  317.     * file.c (file_hash_enter): New local vars {OLD,NEW}BUCKET.  Store
  318.     mod'd values there; never mod {OLD,NEW}HASH.
  319.  
  320. Mon Mar  8 13:32:48 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  321.  
  322.     * remake.c [eta10]: Include <fcntl.h> instead of <sys/file.h>.
  323.  
  324.     * compatMakefile (VPATH): Set this to @srcdir@.
  325.     (srcdir): Set this to $(VPATH).
  326.  
  327.     * main.c (main): New local var DIRECTORY_BEFORE_CHDIR.  Save in it
  328.     a copy of CURRENT_DIRECTORY after the first getcwd.  Use it
  329.     instead of CURRENT_DIRECTORY when chdir'ing back before re-execing.
  330.  
  331.     * remake.c (notice_finished_file): Pass missing SEARCH arg to f_mtime.
  332.  
  333.     * read.c (read_makefile): Remove extraneous arg to parse_file_seq.
  334.  
  335. Mon Feb 22 14:19:38 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  336.  
  337.     * compatMakefile ($(infodir)/$(instname).info): Use , instead of /
  338.     as the sed delimiter char.
  339.  
  340. Sun Feb 21 14:11:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  341.  
  342.     * Version 3.63.4.
  343.  
  344.     * rule.h (struct rule): Removed `subdir' member.
  345.     * rule.c (new_pattern_rule): No need to clear it.
  346.     (count_implicit_rule_limits): Set the `changed' flag in each dep
  347.     that refers to a nonexistent directory.  No longer set rule-global
  348.     `subdir' flag with that information.
  349.     (print_rule_data_base): Don't record info on `subdir' flags.
  350.  
  351.     * implicit.c (pattern_search): Check the DEP->changed flag rather
  352.     than the (now gone) RULE->subdir flag.  Also test CHECK_LASTSLASH;
  353.     if it is set, the file might exist even though the DEP->changed
  354.     flag is set.
  355.  
  356.     * rule.c (count_implicit_rule_limits): Pass "", not ".", as file
  357.     name arg to dir_file_exists_p to check for existence of directory.
  358.  
  359.     * implicit.c (pattern_search): Inside dep-finding loop, set
  360.     CHECK_LASTSLASH from the value recorded in CHECKED_LASTSLASH[I],
  361.     rather than computing it anew.
  362.  
  363.     * commands.c (set_file_variables): Must alloca space for PERCENT
  364.     and copy it, to avoid leaving the trailing `)' in the value.
  365.  
  366.     * misc.c (remove_comments): Fixed backslash-checking loop
  367.     condition to allow it to look at the first char on the line.
  368.     P2 >= LINE, not P2 > LINE.
  369.  
  370.     * compatMakefile ($(bindir)/$(instname)): Before moving $@.new to
  371.     $@, rm $@.old and mv $@ to $@.old.
  372.  
  373.     * variable.c (try_variable_definition): Take new args FILENAME and
  374.     LINENO.  Fatal if the variable name is empty.
  375.     * read.c (read_makefile): Change callers.
  376.     * main.c (main): Likewise.
  377.  
  378.     * compatMakefile (group): Define to @KMEM_GROUP@, autoconf magic
  379.     that configure will replace with the group owning /dev/kmem.
  380.  
  381. Mon Feb  8 14:26:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  382.  
  383.     * vpath.c (vpath_search): Take second arg MTIME_PTR, pass thru to
  384.     selective_vpath_search.
  385.     (selective_vpath_search): Take second arg MTIME_PTR.
  386.     If the dir cache thinks a file exists, stat it to make sure, and
  387.     put the modtime in *MTIME_PTR.
  388.     * remake.c (library_search): Take second arg MTIME_PTR.
  389.     When we find a match, record its mtime there.
  390.     Pass MTIME_PTR through to vpath_search to do same.
  391.     (f_mtime): Pass &MTIME as new 2nd arg to {vpath,library}_search;
  392.     store it in FILE->last_mtime if set nonzero.
  393.     * implicit.c (pattern_search): Pass nil 2nd arg to vpath_search.
  394.  
  395.     * compatMakefile (remote.o): Prepend `$(srcdir)/' to `remote-*.c',
  396.     so globbing looks somewhere it will find things.
  397.  
  398.     * compatMakefile ($(infodir)/$(instname).info): Install `make.info*'
  399.     not `$(srcdir)/make.info*'; no need to use basename.
  400.  
  401. Fri Feb  5 12:52:43 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  402.  
  403.     * Version 3.63.3.
  404.  
  405.     * compatMakefile (install): Add missing ;\s.
  406.  
  407.     Make -, @, and + prefixes on a pre-expanded command line affect
  408.     all lines in the expansion, not just the first.
  409.     * commands.h (struct commands): Replace `lines_recurse' member
  410.     with `lines_flags'.
  411.     (COMMANDS_{RECURSE,SILENT,NOERROR}): New macros, bits to set in
  412.     that flag byte.
  413.     * commands.c (chop_commands): Set `lines_flags' instead of
  414.     `lines_recurse'.  Record not only + but also @ and - prefixes.
  415.     * remake.c (notice_finished_file): Check the COMMANDS_RECURSE bit
  416.     in FILE->cmds->lines_flags, rather than FILE->cmds->lines_recurse.
  417.     * job.c (start_job_command): Replaced RECURSIVE and NOPRINT local
  418.     var with FLAGS; initialize it to the appropriate `lines_flags' byte.
  419.     Set CHILD->noerror if the COMMANDS_NOERROR bit is set in FLAGS.
  420.     Set the COMMANDS_SILENT bit in FLAGS for a @ prefix.
  421.  
  422.     * remake.c (update_goal_chain): Set G->file to its prev after
  423.     checking for G being finished, since that check needs to examine
  424.     G->file.
  425.  
  426.     * configure.in (union wait check) [HAVE_WAITPID]: Try using
  427.     waitpid with a `union wait' STATUS arg.  If waitpid and union wait
  428.     don't work together, we should not use union wait.
  429.  
  430.     * Version 3.63.2.
  431.  
  432.     * remake.c (update_goal_chain): When G->file->updated, move
  433.     G->file to its prev.  We aren't finished until G->file is nil.
  434.  
  435. Thu Feb  4 12:53:04 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  436.  
  437.     * main.c (starting_directory): New global variable.
  438.     (main): Set it to cwd after doing -Cs.
  439.     (log_working_directory): Use it, rather than computing each time.
  440.     * make.h: Declare it.
  441.  
  442.     * compatMakefile (SHELL): Define to /bin/sh for losing Unix makes.
  443.  
  444.     * main.c (decode_env_switches): Allocate (1 + LEN + 1) words for
  445.     ARGV, rather than LEN words plus one byte.
  446.  
  447. Wed Feb  3 18:13:52 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  448.  
  449.     * compatMakefile ($(bindir)/$(instname)): Put - before
  450.     install_setgid command line, so its failure won't be an error.
  451.     (infodir): New variable.
  452.     (install): Depend on $(infodir)/$(instname).info.
  453.     ($(infodir)/$(instname).info): New target.
  454.  
  455.     * read.c (read_makefile): If FILENAMES is nil when we see a line
  456.     starting with a tab, don't treat it as a command.  Just fall
  457.     through, rather than giving an error.
  458.  
  459.     * read.c (read_makefile): If the NO_TARGETS flag is set when we see a
  460.     command line, don't clear it before continuing.  We want
  461.     subsequent command lines to be ignored as well.
  462.  
  463.     * job.c (new_job): Before expanding each command line, collapse
  464.     backslash-newline combinations that are inside var or fn references.
  465.  
  466. Mon Feb  1 16:00:13 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  467.  
  468.     * compatMakefile (exec_prefix): Default to $(prefix), not /usr/local.
  469.  
  470.     * compatMakefile (make.info): Pass -I$(srcdir) to makeinfo.
  471.  
  472.     * job.c [POSIX] (unblock_sigs): Made global.
  473.     [!POSIX] (unblock_sigs): Move defns to job.h.
  474.     * job.h [POSIX] (unblock_sigs): Declare.
  475.  
  476. Sun Jan 31 19:11:05 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  477.  
  478.     * read.c (read_makefile): In vpath parsing, after finding the
  479.     pattern token, take entire rest of line as the search path, not
  480.     just the next token.
  481.  
  482.     * compatMakefile (remote.o): Depend on remote-*.c.
  483.  
  484. Thu Jan 28 16:40:29 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  485.  
  486.     * commands.c (set_file_variables): Don't define any F or D versions.
  487.     * variable.c (define_automatic_variables): Define them here as
  488.     recursively-expanded variables that use the dir and notdir funcs.
  489.  
  490.     * variable.c (target_environment): In v_default case, don't export
  491.     o_default or o_automatic variables.
  492.  
  493.     * configure.in (union wait check): Remove ` and ' inside C code;
  494.     they confuse the shell script.
  495.  
  496. Mon Jan 25 13:10:42 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  497.  
  498.     * Version 3.63.1.
  499.  
  500.     * vpath.c (construct_vpath_list): When skipping further processing
  501.     of an elt that is ".", don't also skip the code that pushes P past
  502.     the next separator.
  503.  
  504.     * compatMakefile (distclean): Don't remove make-*.
  505.  
  506.     * configure.in (HAVE_UNION_WAIT): Try to use WEXITSTATUS if it's
  507.     defined.  If one cannot use WEXITSTATUS with a `union wait'
  508.     argument, we don't want to believe the system has `union wait' at all.
  509.  
  510.     * remake.c (update_file): Do nothing to print "up to date" msgs.
  511.     (update_goal_chain): Do it here instead.
  512.     Use the `changed' flag of each goal's `struct dep' to keep track
  513.     of whether files_remade (now commands_started) changed around a
  514.     call to update_file for that goal.
  515.     When a goal is finished, and its file's update_status is zero (i.e.,
  516.     success or nothing done), test the `changed' flag and give an "up
  517.     to date" msg iff it is clear.
  518.     * make.h (files_remade): Renamed to commands_started.
  519.     * remake.c: Changed defn.
  520.     (update_goal_chain): Changed uses.
  521.     * job.c (start_job_command): Increment commands_started here.
  522.     (reap_children): Not here.
  523.  
  524.     * remake.c (update_goal_chain): Don't do anything with files'
  525.     `prev' members.  update_file now completely handles this.
  526.  
  527.     * variable.c (target_environment): Don't expand recursive
  528.     variables if they came from the environment.
  529.  
  530.     * main.c (define_makeflags): For flags with omitted optional args,
  531.     store {"", 0} with ADD_FLAG.  When constructing FLAGSTRING, a flag
  532.     so stored cannot have more flags appended to the same word.
  533.  
  534. Fri Jan 22 14:46:16 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  535.  
  536.     * variable.c (print_variable_set): In vars/bucket calculation,
  537.     don't spuriously multiply by 100.
  538.  
  539.     * Version 3.63.
  540.  
  541.     * job.c [!HAVE_UNION_WAIT] (WTERMSIG, WCOREDUMP, WEXITSTATUS):
  542.     Don't define if already defined.
  543.  
  544.     * remake.c (update_file): Don't keep track of the command_state before
  545.     calling update_file_1.  Remove local variable COMMANDS_FINISHED,
  546.     and don't test it to decide to print the "is up to date" msg.
  547.     Testing for files_remade having changed should always be sufficient.
  548.     The old method lost when we are called in the goal chain run on a
  549.     makefile, because the makefile's command_state is already
  550.     `cs_finished' from the makefile chain run.
  551.  
  552.     * misc.c [HAVE_SETRE[GU]ID]: Test these to decl setre[gu]id.
  553.  
  554.     * configure.in: Rewrote wait checking.
  555.     Use AC_HAVE_HEADERS to check for <sys/wait.h>.
  556.     Use AC_HAVE_FUNCS to check for waitpid and wait3.
  557.     Use a compile check to test just for `union wait'.
  558.     * job.c: Rewrote conditionals accordingly.
  559.     [HAVE_WAITPID]: Test this only to define WAIT_NOHANG.
  560.     [HAVE_WAIT3]: Likewise.
  561.     [HAVE_UNION_WAIT]: Test this to define WAIT_T and W*.
  562.  
  563.     * configure.in: Set CFLAGS and LDFLAGS before all checks.
  564.  
  565.     * dir.c: Add static forward decls of {open,read}_dirstream.
  566.  
  567. Thu Jan 21 17:18:00 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  568.  
  569.     * Version 3.62.31.
  570.  
  571.     * job.c [NGROUPS_MAX && NGROUPS_MAX==0]: #undef NGROUPS_MAX.
  572.  
  573.     * compatMakefile (CFLAGS, LDFLAGS): Set to @CFLAGS@/@LDFLAGS@.
  574.     * build.template (CFLAGS, LDFLAGS): Same here.
  575.     * configure.in: AC_SUBST(CFLAGS) and LDFLAGS.
  576.     Set them to -g if not defined in the environment.
  577.  
  578.     * remake.c (library_search): Use LIBNAME consistently, setting it
  579.     only once, to be the passed name sans `-l'.
  580.     Pass new var FILE to be modified by vpath_search.
  581.  
  582. Mon Jan 18 14:53:54 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  583.  
  584.     * Version 3.62.30.
  585.  
  586.     * job.c (start_waiting_jobs): Return when job_slots_used is equal to
  587.     job_slots. 
  588.  
  589.     * configure.in: Add AC_CONST for the sake of getopt.
  590.  
  591.     * read.c (read_makefile): Continue after parsing `override'
  592.     directive, rather than falling through to lossage.
  593.     Check for EOL or blank after "override define".
  594.  
  595.     * compatMakefile (.c.o, remote.o): Put $(CFLAGS) after other switches.
  596.  
  597. Fri Jan 15 12:52:52 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  598.  
  599.     * Version 3.62.29.
  600.  
  601.     * main.c (define_makeflags): After writing everything into
  602.     FLAGSTRING, only back up two chars if [-1] is a dash, meaning we
  603.     just wrote " -".  Always terminate the string at *P.
  604.  
  605.     * remake.c (library_search): When constructing names in std dirs,
  606.     use &(*LIB)[2] for the stem, not LIBNAME (which points at the
  607.     buffer we are writing into!).
  608.  
  609. Thu Jan 14 13:50:06 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  610.  
  611.     * read.c (read_makefile): Set IN_IGNORED_DEFINE for "override
  612.     define" when IGNORING is true.
  613.  
  614.     * compatMakefile (distclean): Remove config.status and build.sh.
  615.  
  616. Wed Jan 13 16:01:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  617.  
  618.     * Version 3.62.28.
  619.  
  620.     * misc.c (xmalloc, xrealloc): Cast result of malloc/realloc to
  621.     (char *).
  622.  
  623.     * arscan.c (ar_scan) [AIAMAG]: Cast read arg to (char *).
  624.  
  625.     * variable.c (define_automatic_variables): Override SHELL value for
  626.     origin o_env_override as well as o_env.
  627.  
  628.     * GNUmakefile (build.sh.in): Don't replace %globobjs%.  Instead,
  629.     add the names of the glob objects (w/subdir) to %objs%.
  630.     * build.template (globobjs): Removed.
  631.     Take basename of $objs before linking.
  632.  
  633. Tue Jan 12 12:31:06 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  634.  
  635.     * Version 3.62.27.
  636.  
  637.     * configure.in (AC_OUTPUT): Also edit build.sh.
  638.     * build.template: New file.
  639.     * GNUmakefile (build.sh.in): New rule to create it from build.template.
  640.     (make-$(version).tar.Z): Depend on build.sh.in.
  641.  
  642.     * main.c (die): Call print_data_base if -p.
  643.     (main): Don't call it here.
  644.  
  645.     * compatMakefile (defines): Add @DEFS@.  configure should turn this
  646.     into -DHAVE_CONFIG_H.
  647.  
  648. Mon Jan 11 14:39:23 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  649.  
  650.     * Version 3.62.26.
  651.  
  652.     * misc.c (init_access): Surround with #ifdef GETLOADAVG_PRIVILEGED.
  653.     ({make,user,child}_access) [! GETLOADAVG_PRIVILEGED]: Make no-op.
  654.     * compatMakefile (install_setgid): New var, set by configure.
  655.     (install): Install setgid $(group) only if $(install_setgid) is true.
  656.  
  657. Fri Jan  8 15:31:55 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  658.  
  659.     * job.c (load_too_high): If getloadavg fails with errno==0, give a
  660.     message saying that load limits are not supported.
  661.  
  662.     * vpath.c (construct_vpath_list): Rewrote path deletion code to
  663.     not try to use PATH's next link after freeing PATH.
  664.  
  665.     * main.c (define_makeflags): Rewritten; now handles string-valued
  666.     option, and has no arbitrary limits.
  667.     (switches): Set `toenv' flag for -I and -v.
  668.  
  669.     * main.c (decode_env_switches): Cast return value of alloca to char *.
  670.  
  671.     * misc.c (child_access) [HAVE_SETREUID, HAVE_SETREGID]: Use
  672.     setre[gu]id in place of set[gu]id.
  673.  
  674. Wed Jan  6 15:06:12 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  675.  
  676.     * main.c (main): Define MAKEOVERRIDES, MAKE, and MAKE_COMMAND with
  677.     origin o_default.
  678.  
  679.     * make.h [POSIX]: Don't test this to use ANSI_STRING.
  680.     Testing STDC_HEADERS should be sufficient.
  681.  
  682.     * job.h: Declare start_waiting_jobs.
  683.  
  684.     * read.c (read_makefile): Add missing parens in if stmt that find
  685.     conditional directives.
  686.  
  687.     * main.c (main): Declare init_dir.
  688.     * implicit.c (pattern_search): Always use two % specs in a
  689.     DEBUGP2, and always pass two non-nil args.
  690.     Cast field width args to int.
  691.     Add missing parens in !RULE->subdir if stmt.
  692.     * function.c (expand_function, patsubst_expand): Add parens around
  693.     assignments inside `while' stmts.
  694.     * commands.c (print_commands): Cast field width args to int.
  695.  
  696.     * read.c (do_define): Cast return value of alloca to (char *).
  697.  
  698.     * main.c (init_switches): New function, broken out of decode_switches.
  699.     (decode_switches): Take new arg ENV.  If set, ignore non-option
  700.     args; print no error msgs; ignore options with clear `env' flags.
  701.     (decode_env_switches): Rewritten to chop envar value into words
  702.     and pass them to decode_switches.
  703.     (switches): Set `env' flag for -I and -v.
  704.  
  705.     * dir.c (init_dir): Cast free to __glob_closedir_hook's type.
  706.  
  707. Tue Jan  5 14:52:15 1993  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  708.  
  709.     * Version 3.62.25.
  710.  
  711.     * job.c [HAVE_SYS_WAIT || !USG]: Don't #include <sys/time.h> and
  712.     <sys/resource.h>.  <sys/time.h> interacts badly with <time.h>, and
  713.     we don't need these anyway.
  714.  
  715.     * configure.in (AC_HAVE_FUNCS): Check for setre[gu]id.
  716.     * misc.c ({user,make}_access): Test #ifndef HAVE_SETRE[GU]ID, not
  717.     #ifdef POSIX || USG.  SunOS 4.1 is supposedly POSIX.1 compliant,
  718.     but its set[gu]id functions aren't; its setre[gu]id functions work.
  719.  
  720.     * misc.c ({user,make,child}_access): Give name of caller in error msgs.
  721.  
  722.     * job.c (load_too_high): Say "cannot enforce load limit" in error msg.
  723.  
  724.     * configure.in: Call AC_PROG_CC.
  725.     * compatMakefile (CC): Define to @CC@ (autoconf magic).
  726.  
  727.     * compatMakefile: Add .NOEXPORT magic target.
  728.  
  729. Mon Jan  4 17:00:03 1993  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  730.  
  731.     * main.c (print_version): Updated copyright to include 93.
  732.  
  733. Thu Dec 31 12:26:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  734.  
  735.     * make.h [_AIX]: Don't declare alloca.
  736.  
  737. Tue Dec 29 13:45:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  738.  
  739.     * Version 3.62.24.
  740.  
  741.     * compatMakefile (objs): Add signame.o.
  742.     (srcs): Add signame.[ch].
  743.  
  744.     * compatMakefile (srcs): Add config.h.in.
  745.     (remote.o): Add -I. before -I$(srcdir).
  746.  
  747. Mon Dec 28 15:51:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  748.  
  749.     * Version 3.62.23.
  750.  
  751.     * read.c (readline): Fatal when LEN==0, indicating a line starting
  752.     with a NUL.
  753.     (readline): Take new arg LINENO, for use in error msg.
  754.     (read_makefile, do_define): Pass it.
  755.  
  756.     * compatMakefile (glob/libglob.a): Pass -DHAVE_CONFIG_H in CPPFLAGS.
  757.     (.c.o): Add -I. before -I$(srcdir).
  758.  
  759. Wed Dec 23 12:12:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  760.  
  761.     * read.c (read_makefile): Accept and ignore a rule with no targets.
  762.  
  763.     * compatMakefile (ALLOCA_SRC): New variable.
  764.     (srcs): Include its value.
  765.  
  766.     * read.c (struct conditional): Renamed member `max_ignoring' to
  767.     `allocated'; added new member `seen_else'.
  768.     (conditional_line): Initialize seen_else flag when starting an `if...';
  769.     set it when we see an `else'; fatal if set when we see `else'.
  770.     (read_makefile): Fatal "missing `endif'" if there are any pending
  771.     conditionals, not just if we are still ignoring.
  772.  
  773. Tue Dec 22 15:36:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  774.  
  775.     * compatMakefile (manext): Set to 1, not l.
  776.     ($(mandir)/$(instname).$(manext)): Use $(srcdir) for make.man in cmds.
  777.  
  778.     * file.c (file_hash_enter): Don't call uniquize_deps here.
  779.     * read.c (record_files): Likewise.
  780.     * implicit.c (pattern_search): Likewise.
  781.     * commands.c (set_file_variables): Call it only here.
  782.  
  783.     * default.c (default_variables) [__convex__]: FC=fc.
  784.  
  785.     * variable.c (target_environment): Expand the values of recursively
  786.     expanded variables when putting them into the environment.
  787.     * expand.c (recursively_expand): Made global.
  788.     * make.h (recursively_expand): Declare it.
  789.  
  790.     * remake.c (check_dep): Set FILE->command_state to cs_deps_running
  791.     when a dep's command_state is cs_running or cs_deps_running.
  792.  
  793.     * read.c (read_makefile): Changed error msg for spurious cmds to
  794.     not say "first target".
  795.  
  796. Sun Dec 20 17:56:09 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  797.  
  798.     * configure.in: Do AC_CONFIG_HEADER right after AC_INIT.
  799.     * make.h (HAVE_CONFIG_H): #include "config.h", then #define this.
  800.     * compatMakefile (config.h, configure, config.h.in): New rules.
  801.     (defines): Removed @DEFS@.
  802.  
  803. Thu Dec 17 16:11:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  804.  
  805.     * compatMakefile (realclean): Just depend on distclean; no cmds.
  806.     (distclean): Do what realclean did before; also remove Makefile and
  807.     config.h; don't remove configure.
  808.     (info, dvi): New targets; depend on make.{info,dvi}.
  809.     (doc): Removed target.
  810.     (MAKEINFO, TEXI2DVI): New vars.
  811.     (make.info, make.dvi): Use them instead of explicit cmds.
  812.  
  813. Wed Dec 16 16:25:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  814.  
  815.     * configure.in: Added fcntl.h to AC_HAVE_HEADERS.  getloadavg cares.
  816.  
  817. Wed Dec  9 15:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  818.  
  819.     * main.c (long_option_aliases): Add --new-file alias for -W.
  820.  
  821.     * default.c (default_variables): Change all C++ to CXX and C++FLAGS
  822.     to CXXFLAGS.
  823.  
  824.     * read.c (do_define): Expand the variable name before using it.
  825.  
  826.     * main.c (main): Define variable "MAKE_COMMAND" to argv[0];
  827.     define "MAKE=$(MAKE_COMMAND) $(MAKEOVERRIDES)" always.
  828.  
  829.     * remake.c (library_search): Search for libNAME.a in cwd; look in
  830.     vpath before looking in standard dirs, not after.
  831.     Changed order of std dirs to: /lib, /usr/lib, ${prefix}/lib.
  832.  
  833. Mon Nov 23 14:57:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  834.  
  835.     * default.c (default_pattern_rules, default_terminal_rules): Added
  836.     brackets around initializers.
  837.  
  838.     * variable.c (try_variable_definition): Don't check for LINE[0]=='\t'.
  839.     (try_variable_definition): Expand the name before defining the var.
  840.  
  841.     * job.c (init_siglist): Removed function.
  842.     Removed decl of `sys_siglist'.
  843.     * make.h [! HAVE_SYS_SIGLIST]: #include "signame.h".
  844.     [HAVE_SYS_SIGLIST && !SYS_SIGLIST_DECLARED]: Declare sys_siglist
  845.     only under these conditions.
  846.     * main.c (main): Don't declare init_siglist.
  847.     (main) [! HAVE_SYS_SIGLIST]: Call signame_init instead of init_siglist.
  848.  
  849. Wed Nov 18 14:52:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  850.  
  851.     * read.c (record_files): Don't try to append to FIRSTDEPS if it's
  852.     nil; instead just set it to MOREDEPS.
  853.  
  854. Mon Nov 16 17:49:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  855.  
  856.     * vpath.c (construct_vpath_list): Initialize P to DIRPATH before
  857.     loop that sets MAXELEM.
  858.  
  859. Fri Nov 13 18:23:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  860.  
  861.     * Version 3.62.22.
  862.  
  863. Thu Nov 12 15:45:31 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  864.  
  865.     * job.c (start_job_command): Under -n, increment files_remade after
  866.     processing (i.e., printing) all command lines.
  867.  
  868. Tue Nov 10 15:33:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  869.  
  870.     * read.c (record_files): Append new deps if this rule has no
  871.     commands; prepend them to existing deps if this rule has no commands.
  872.  
  873.     * dir.c (open_dirstream): Return nil if DIR->contents->files is nil.
  874.  
  875.     * read.c (parse_file_seq): Removed last arg STRIP.  Always strip `./'s.
  876.     (read_makefile): Changed callers.
  877.     * function.c (string_glob): Likewise.
  878.     * rule.c (install_pattern_rule): Likewise.
  879.  
  880. Mon Nov  9 17:50:16 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  881.  
  882.     * remake.c (files_remade): Made global.
  883.     (notice_finished_file): Don't increment files_remade here; this
  884.     function gets called in many situations where no remaking was in
  885.     fact done.
  886.     * job.c (reap_children): Do it here instead, when we know that 
  887.     actual commands have been run for the file.
  888.     * make.h (files_remade): Declare it.
  889.  
  890. Thu Nov  5 18:26:10 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  891.  
  892.     * vpath.c (construct_vpath_list): Allow blanks as well as colons to
  893.     separate elts in the search path.
  894.  
  895.     * read.c (read_makefile): Don't fatal on extra tokens in `vpath'.
  896.     The search path can contain spaces now.
  897.  
  898. Tue Nov  3 20:44:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  899.  
  900.     * compatMakefile (check): New target; no-op.
  901.  
  902.     * file.c (file_hash_enter): Mod OLDHASH by FILE_BUCKETS after
  903.     testing for OLDHASH==0 but before using the value.
  904.     (rename_file): Don't mod OLDHASH by FILE_BUCKETS before passing it
  905.     to file_hash_enter.
  906.  
  907.     * file.c (rename_file): Notice when OLDFILE->cmds came from
  908.     default.c, and don't try to print ->filename in that case.
  909.  
  910. Sun Oct 25 01:48:23 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  911.  
  912.     * remake.c (update_file): Don't process F->also_make here.
  913.     (notice_finished_file): Don't process FILE->also_make if no attempt
  914.     to update FILE was actually made.
  915.     Fixed to call f_mtime directly to refresh their modtimes.
  916.  
  917. Sat Oct 24 22:08:59 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  918.  
  919.     * read.c (find_percent): Don't increment P again after skipping
  920.     an escaped %.
  921.  
  922.     * expand.c (variable_expand): In call to patsubst_expand, don't
  923.     find `%'s ourselves; let that function do it.
  924.  
  925.     * read.c (read_makefile: record_waiting_files): Don't call
  926.     record_files if FILENAMES is nil.
  927.     (read_makefile): All alternatives in the parsing, except for rule
  928.     lines, fall through to the end of the loop.  At the end of the
  929.     loop, do record_waiting_files so we notice later spurious cmds.
  930.  
  931. Fri Oct 23 15:57:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  932.  
  933.     * variable.c (define_automatic_variables): Free old value of SHELL
  934.     before replacing it.
  935.  
  936. Thu Oct 15 18:57:56 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  937.  
  938.     * compatMakefile (.c.o): Add -I$(srcdir)/glob to flags.
  939.  
  940.     * dir.c (open_dirstream): Cast return value to __ptr_t.
  941.  
  942.     * default.c (default_variables: "GET") [_IBMR2]: Use USG defn.
  943.  
  944.     * make.h (MAXPATHLEN): Moved out of #ifndef POSIX.
  945.     (GET_PATH_MAX): Moved from #ifdef POSIX to #ifdef PATH_MAX #else.
  946.     Define as (get_path_max ()).
  947.     [! PATH_MAX] (NEED_GET_PATH_MAX): Define.
  948.     [! PATH_MAX] (get_path_max): Declare fn.
  949.     * misc.c [NEED_GET_PATH_MAX] (get_path_max): New function.
  950.  
  951. Mon Oct 12 13:34:45 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  952.  
  953.     * Version 3.62.21.
  954.  
  955.     * job.c (sys_siglist): Only declare #ifndef SYS_SIGLIST_DECLARED.
  956.     * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
  957.     SYS_SIGLIST_DECLARED.
  958.  
  959.     * dir.c (file_impossible): When initializing DIR->contents, set
  960.     DIR->contents->dirstream to nil.
  961.  
  962.     * compatMakefile (GLOB): Define new variable.
  963.     (objs): Use it, rather than glob/libglob.a explicitly.
  964.  
  965.     * read.c (parse_file_seq): When stripping "./", handle cases like
  966.     ".///foo" and "./////".
  967.     * file.c (lookup_file, enter_file): Likewise.
  968.  
  969. Sun Oct 11 17:00:35 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  970.  
  971.     * dir.c (struct dirstream, {open,read}_dirstream): New
  972.     data type and functions to read a directory sequentially.
  973.     (init_dir): New function to hook it into glob.
  974.     * main.c (main): Call init_dir.
  975.  
  976.     * compatMakefile (objs): Added glob/libglob.a.
  977.     * configure.in: Remove code to test for glob.
  978.  
  979. Fri Oct  9 12:08:30 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  980.  
  981.     * read.c (record_files): Generalized test for NAME pointing
  982.     somewhere into F->name.
  983.  
  984.     * variable.c (define_variable_in_set): Free old value when replacing.
  985.  
  986.     * read.c (do_define): Free the linebuffer before returning.
  987.     (record_files): When clearing .SUFFIXES deps, free their data.
  988.     (multi_glob): Free OLD and its data when replacing it with results
  989.     of glob run.
  990.  
  991.     * commands.c (set_file_variables): Use alloca in place of xmalloc
  992.     for temp space for $^, $?, et al.
  993.  
  994.     * dir.c (struct directory): New member `contents' replaces `files'
  995.     and `dirstream'.
  996.     (struct directory_contents): New type.
  997.     (directories_contents): New hash table.
  998.     (dir_struct_file_exists_p): Take a struct directory_contents.
  999.     (dir_file_exists_p): Pass it the `contents' member of the dir found.
  1000.     (dir_struct_file_exists_p): Renamed to dir_contents_file_exists_p;
  1001.     made static.  Return 0 if DIR is nil (meaning it couldn't be stat'd).
  1002.     (dir_file_exists_p, find_directory): Change all callers.
  1003.     (file_impossible): Use DIR->contents, initializing it if nil.
  1004.     (print_dir_data_base): Use DIR->contents, and print out device and
  1005.     inode numbers with each directory.
  1006.  
  1007.     * Changes for performance win from John Gilmore <gnu@cygnus.com>:
  1008.     * dir.c (DIRECTORY_BUCKETS): Increase to 199.
  1009.     (DIRFILE_BUCKETS): Decrease to 107.
  1010.     (find_directory): Allocate and zero a multiple of
  1011.     sizeof (struct dirfile *), not of sizeof (struct dirfile).
  1012.     (dir_struct_file_exists_p): New function, nearly all code from
  1013.     dir_file_exists_p.
  1014.     (dir_file_exists_p): Just call find_directory+dir_struct_file_exists_p.
  1015.     * vpath.c (selective_vpath_search): Remove redundant
  1016.     dir_file_exists_p call.
  1017.  
  1018.     * configure.in: Comment out glob check; always use our code.
  1019.  
  1020. Fri Oct  2 19:41:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1021.  
  1022.     * make.h [! HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
  1023.     HAVE_SYS_SIGLIST; after doing #define sys_siglist _sys_siglist, we
  1024.     do have it.
  1025.  
  1026. Wed Sep 30 19:21:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1027.  
  1028.     * main.c (main): Don't do -w automatically if -s.
  1029.  
  1030. Tue Sep 29 21:07:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1031.  
  1032.     * main.c (printed_version): Move variable inside print_version.
  1033.     (print_version): Return immediately if printed_version is set.
  1034.     (die): Don't test printed_version here.
  1035.     (decode_switches): Under -v, do print_version before giving usage.
  1036.     (DESCRIPTION_COLUMN): New macro.
  1037.     (decode_switches): Use it when printing the usage message.
  1038.     Leave at least two spaces between options and their descriptions.
  1039.  
  1040. Fri Sep 25 13:12:42 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1041.  
  1042.     * Version 3.62.20.
  1043.  
  1044. Wed Sep 16 16:15:22 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1045.  
  1046.     * read.c (read_makefile): Save errno value from trying to open
  1047.     FILENAME, and restore it before erring; otherwise we get the errno
  1048.     value from the last elt of the search path.
  1049.  
  1050. Tue Sep 15 15:12:47 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1051.  
  1052.     * main.c (long_option_aliases): Add --stop for -S.
  1053.  
  1054.     * read.c (word1eq): Do strncmp before dereferencing someplace that
  1055.     may be out in space.
  1056.  
  1057. Wed Sep  9 15:50:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1058.  
  1059.     * remake.c (notice_finished_file): If all the command lines were
  1060.     recursive, don't do the touching.
  1061.  
  1062.     * job.c (start_job_command): Don't check for + here.
  1063.     * commands.c (chop_commands): Do it here instead.
  1064.  
  1065.     * default.c (default_terminal_rules): Prepend + to cmds for RCS.
  1066.  
  1067. Wed Sep  2 17:53:08 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1068.  
  1069.     * compatMakefile (objs): Include $(ALLOCA).
  1070.  
  1071.     * make.h [CRAY]: Move #define signal bsdsignal to before #includes.
  1072.  
  1073. Thu Aug 27 17:45:43 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  1074.  
  1075.     * read.c (default_include_directories): Add INCLUDEDIR first.
  1076.     * compatMakefile (includedir): Define.
  1077.     (defines): Add -D for INCLUDEDIR="$(includedir)".
  1078.  
  1079.     * read.c (read_makefile): Grok multiple files in `include';
  1080.     globbing too.
  1081.  
  1082.     * remake.c (library_search): New function.
  1083.     (library_file_mtime): Remove function.
  1084.     (f_mtime): Use library_search instead of library_file_mtime.
  1085.     * compatMakefile (libdir): Define.
  1086.     (defines): Add -D for LIBDIR="$(libdir)".
  1087.     * make.texinfo (Libraries/Search): Document change.
  1088.  
  1089.     * file.c (rename_file): Fix file_hash_enter call with missing arg.
  1090.  
  1091. Wed Aug 26 17:10:46 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1092.  
  1093.     * Version 3.62.19.
  1094.  
  1095.     * main.c (main): Set command_state to cs_finished for temp files
  1096.     made for stdin makefiles.
  1097.  
  1098.     * main.c (decode_switches): Don't tell getopt to return non-option
  1099.     args in order.
  1100.     Ignore an argument of `-'.
  1101.  
  1102. Thu Aug 20 13:36:04 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1103.  
  1104.     * job.c (start_job_command): If (touch_flag && !RECURSIVE), ignore
  1105.     the command line and go to the next.
  1106.     (notice_finished_file): Under -t, touch FILE.
  1107.     * remake.c (remake_file): Don't touch it here.
  1108.  
  1109. Wed Aug 19 16:06:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1110.  
  1111.     * function.c (pattern_matches): Use temporary for strlen (WORD)
  1112.     instead of two function calls.
  1113.  
  1114.     * compatMakefile (LOAD_AVG): Remove variable and comments.
  1115.  
  1116. Tue Aug 18 14:58:58 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1117.  
  1118.     * make.texinfo (Running): Node renamed to `make Invocation'.
  1119.  
  1120. Fri Aug 14 12:27:10 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1121.  
  1122.     * arscan.c (ar_name_equal): Don't compare [MAX-3..MAX] if
  1123.     NAMELEN != MEMLEN.
  1124.  
  1125. Thu Aug 13 17:50:09 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1126.  
  1127.     * Version 3.62.18.
  1128.  
  1129.     * main.c: Don't #include <time.h>; make.h already does.
  1130.  
  1131. Mon Aug 10 17:03:01 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1132.  
  1133.     * implicit.c (pattern_search): Fixed copying of suffix when building
  1134.     also_make elts.
  1135.  
  1136.     * function.c (expand_function: `shell'): Make sure BUFFER is
  1137.     null-terminated before replacing newlines.
  1138.  
  1139.     * compatMakefile (mandir): Use man$(manext), not always manl.
  1140.  
  1141. Sun Aug  2 01:42:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1142.  
  1143.     * rule.c (new_pattern_rule): Not static.
  1144.     * rule.h: Declare it.
  1145.  
  1146.     * file.c (file_hash_enter): New function, most code from rename_file.
  1147.     (rename_file): Call it.
  1148.     * file.h (file_hash_enter): Declare it.
  1149.  
  1150.     * dep.h: Doc fix.
  1151.  
  1152. Thu Jul 30 15:40:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1153.  
  1154.     * main.c (decode_switches): Handle usage_and_exit when building
  1155.     long options vector.
  1156.  
  1157.     * default.c (default_terminal_rules): Make RCS rules use $(CHECKOUT,v).
  1158.     (default_variables): Define CHECKOUT,v (hairy).
  1159.  
  1160.     * make.h [!HAVE_SYS_SIGLIST && HAVE__SYS_SIGLIST]: #define
  1161.     sys_siglist to _sys_siglist.
  1162.  
  1163. Sun Jul 26 16:56:32 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1164.  
  1165.     * NEWS: Add header and tail copyright info like Emacs NEWS.
  1166.  
  1167.     * make.h [ANSI_STRING]: Don't #define index, rindex, bcmp, bzero,
  1168.     bcopy if already #define'd.
  1169.     [STDC_HEADERS] (qsort, abort, exit): Declare here.
  1170.     [! __GNU_LIBRARY__ && !POSIX]: Not here.
  1171.  
  1172.     * make.h [_AIX]: #pragma alloca first thing.
  1173.  
  1174.     * job.c (start_waiting_job): Set the command_state to cs_running
  1175.     when we queue a job on waiting_jobs.
  1176.  
  1177. Fri Jul 24 02:16:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1178.  
  1179.     * variable.c (define_automatic_variables): Use "" instead of nil
  1180.     for empty value.
  1181.  
  1182. Thu Jul 23 22:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1183.  
  1184.     * Version 3.62.17.
  1185.  
  1186.     * main.c (struct command_switch.type): Add alternative usage_and_exit.
  1187.     (command_switches): Add -h/--help.
  1188.  
  1189. Thu Jul 16 14:27:50 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1190.  
  1191.     * GNUmakefile (make-$(version).tar.Z): Include NEWS, not CHANGES.
  1192.     * README.template: Mention NEWS.
  1193.     * CHANGES: Renamed to NEWS.
  1194.  
  1195.     * main.c [! STDC_HEADERS] [sun]: Don't declare exit.
  1196.  
  1197. Tue Jul 14 18:48:41 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1198.  
  1199.     * main.c (main): Set -o files' command_states to cs_finished.
  1200.  
  1201.     * rule.c (count_implicit_rule_limits): Decrement num_pattern_rules
  1202.     when tossing a rule.
  1203.  
  1204.     * main.c (main): Use alloca only in simple local var assignment,
  1205.     for braindead SGI compiler.
  1206.  
  1207.     * rule.c (print_rule_data_base): Barf if num_pattern_rules is
  1208.     inconsistent with the number computed when listing them.
  1209.  
  1210. Mon Jul 13 17:51:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1211.  
  1212.     * commands.c (set_file_variables): For $? and $^ elts that are archive
  1213.     member refs, use member name only.
  1214.  
  1215. Fri Jul 10 00:05:04 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1216.  
  1217.     * variable.h (struct variable.export): Add new alternative v_ifset.
  1218.     * variable.c (target_environment): Check for it.
  1219.     (define_automatic_variables): Set it for MAKEFILES.
  1220.  
  1221. Thu Jul  9 21:24:28 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1222.  
  1223.     * compatMakefile (objs): Remove getloadavg.o; $(extras) gets it.
  1224.     (remote.o): Use $(srcdir)/remote.c, not $remote.c<.
  1225.     (distclean, mostlyclean): New targets.
  1226.  
  1227. Tue Jul  7 19:12:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1228.  
  1229.     * Version 3.62.16.
  1230.  
  1231.     * compatMakefile (config.status): Remove rule.
  1232.  
  1233.     * job.c (start_waiting_job): Free C after using C->file, not before.
  1234.  
  1235. Sat Jul  4 20:51:49 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1236.  
  1237.     * commands.c, job.c, main.c, make.h, remote-cstms.c: Use #ifdef
  1238.     HAVE_* instead of #ifndef *_MISSING.
  1239.     * configure.in: Use AC_HAVE_FUNCS instead of AC_MISSING_FUNCS (gone).
  1240.  
  1241. Thu Jul  2 18:47:52 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1242.  
  1243.     * main.c (main): makelevel>0 or -C implies -w.
  1244.  
  1245. Tue Jun 30 20:50:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1246.  
  1247.     * file.c, job.c, function.c: Don't #include <errno.h>.
  1248.     make.h: Do it here instead.
  1249.     * arscan.c (ar_member_touch): Don't declare errno.
  1250.  
  1251. Thu Jun 25 17:06:55 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1252.  
  1253.     * GNUmakefile (make-$(version).tar.Z): Depend on INSTALL, configure.in.
  1254.  
  1255.     * remake.c (update_file): If commands or deps are running after
  1256.     update_file_1 returns, break out of the :: rule (->prev) loop and
  1257.     just return.
  1258.  
  1259.     * job.c    (job_next_command): New function; code from start_job.
  1260.     (start_job_command): Renamed from start_job.  Call job_next_command
  1261.     and recurse for empty command lines and -n.
  1262.     (start_waiting_job): Call start_job_command, not start_job.
  1263.     (new_job): Call job_next_command to prime the child structure, and
  1264.     then call start_waiting_job.
  1265.     (reap_children): Use job_next_command and start_job_command.
  1266.     (start_waiting_job): Call start_remote_job_p here, and store its
  1267.     result in C->remote.  If zero, check the load average and
  1268.     maybe put C on waiting_jobs.
  1269.     (start_job_command): Test CHILD->remote rather than calling
  1270.     start_remote_job_p.  Don't do load avg checking at all here.
  1271.  
  1272.     * main.c (main): Don't handle SIGILL, SIGIOT, SIGEMT, SIGBUS,
  1273.     SIGSEGV, SIGFPE or SIGTRAP.
  1274.  
  1275.     * compatMakefile (glob/libglob.a): Don't pass srcdir to sub-make.
  1276.     configure will set it in glob/Makefile.
  1277.  
  1278. Wed Jun 24 19:40:34 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1279.  
  1280.     * dir.c [DIRENT] (direct): Don't define to dirent.
  1281.     [! DIRENT] (direct): Define to dirent.
  1282.     (dir_file_exists_p): Use struct dirent instead of struct direct.
  1283.  
  1284.     * make.h (getcwd): No space between macro and ( for args!
  1285.  
  1286.     * job.c (start_job): Don't put the job on waiting_jobs if
  1287.     job_slots_used==0.
  1288.  
  1289.     * make.texinfo (Missing): Shortened title.
  1290.  
  1291. Tue Jun 23 18:42:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1292.  
  1293.     * file.c (remove_intermediates): Print "rm" commands under -n.
  1294.  
  1295. Mon Jun 22 16:20:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1296.  
  1297.     * Version 3.62.15.
  1298.  
  1299. Fri Jun 19 16:20:26 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1300.  
  1301.     * arscan.c [M_UNIX]: #undef M_XENIX.
  1302.  
  1303. Wed Jun 17 17:59:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1304.  
  1305.     * default.c (default_terminal_rules): Put @ prefix on RCS cmds.
  1306.  
  1307. Tue Jun 16 19:24:17 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1308.  
  1309.     * compatMakefile (getloadavg.o): Removed special rule.
  1310.     (CFLAGS): Don't include $(defines).
  1311.     (.c.o): Define suffix rule.
  1312.     (glob/libglob.a): Pass CPPFLAGS=$(defines) to submake.
  1313.     (GETOPT_SRC, srcs, tagsrcs): Prefix files with $(srcdir)/.
  1314.  
  1315.     * arscan.c (ar_name_equal): Moved local vars inside #if'd block.
  1316.  
  1317.     * make.h (max): Removed.
  1318.     * expand.c (variable_buffer_output): Don't use it.
  1319.  
  1320.     * compatMakefile (INSTALL): Define.
  1321.     (Makefile): New rule to make from Makefile.in.
  1322.     (srcdir): Define.
  1323.     (VPATH): Define.
  1324.     (getloadavg.o, remote.o): Use autoconf $foo< hack.
  1325.  
  1326.     * commands.c (fatal_error_signal): Removed return.
  1327.  
  1328. Mon Jun 15 17:42:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1329.  
  1330.     * Version 3.62.14.
  1331.  
  1332.     * make.texinfo (Summary): New node.
  1333.     (Special Targets): Mention .EXPORT_ALL_VARIABLES here.
  1334.  
  1335.     * variable.c (max): Moved to make.h.
  1336.  
  1337.     * compatMakefile (objs, srcs): Added ar & arscan.
  1338.  
  1339.     * job.c (start_waiting_job): New function, 2nd half of new_job.
  1340.     (new_job): Call it.
  1341.     (start_waiting_jobs): New function.
  1342.     * remake.c (update_goal_chain): Call start_waiting_jobs at the top
  1343.     of the main loop.
  1344.     * compatMakefile (objs, srcs): Removed load, added getloadavg.
  1345.  
  1346. Fri Jun 12 19:33:16 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1347.  
  1348.     * job.c (load_too_high): New function.  Uses getloadavg.
  1349.     (waiting_jobs): New variable.
  1350.     (start_job): Don't call wait_to_start_job.  Instead, if
  1351.     load_too_high returns nonzero, add the child to the
  1352.     `waiting_jobs' chain and return without starting the job.
  1353.  
  1354. Thu Jun 11 00:05:28 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1355.  
  1356.     * expand.c (variable_buffer_output): Made global again.
  1357.     * variable.h: And declare it.
  1358.  
  1359.     * arscan.c (PORTAR): Define for all systems if PORT5AR is not defined.
  1360.     (AR_NAMELEN, AR_TRAILING_SLASH): Removed.
  1361.     (ar_scan): Don't use it.  Don't #ifdef AR_TRAILING_SLASH; just look
  1362.     for a slash in the archive at run time.
  1363.     (ar_name_equal): Rewrote .o hacking to not use AR_NAMELEN, and to
  1364.     cope with trailing-slash and non-trailing-slash archives.
  1365.  
  1366.     * main.c (main) [! SETVBUF_REVERSED]: Test this instead of USGr3 et al.
  1367.     [SETVBUF_REVERSED]: Always allocate a buffer ourselves.
  1368.  
  1369.     * load.c (load_average) [sgi]: Use sysmp call.
  1370.  
  1371.     * compatMakefile (INSTALL_DATA, INSTALL_PROGRAM): Define.
  1372.     ($(bindir)/$(instname), $(mandir)/make.$(manext)): Use them.
  1373.  
  1374.     * make.h [HAVE_VFORK_H]: #include <vfork.h>.
  1375.     (vfork, VFORK_NAME): Don't define.
  1376.     * job.c (start_job): Use "vfork" in place of VFORK_NAME.
  1377.  
  1378.     * make.h [HAVE_LIMITS_H, HAVE_SYS_PARAM_H]: If #define'd, #include
  1379.     the each file.  Rearranged PATH_MAX hacking.
  1380.     * job.c: Rearranged NGROUPS_MAX hacking.
  1381.  
  1382.     * remake.c (fstat, time): Don't declare.
  1383.  
  1384.     * compatMakefile (defines): Value is @DEFS@.
  1385.     (LOADLIBES): Value is @LIBS@.
  1386.     (extras): Value is @LIBOBJS@.
  1387.     (ARCHIVES, ARCHIVES_SRC, ALLOCASRC): Removed.
  1388.     * arscan.c, ar.c: Surround body with #ifndef NO_ARCHIVES.
  1389.  
  1390.     * misc.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl get*id.
  1391.  
  1392.     * make.h [GETCWD_MISSING]: Test instead of !USG && !POSIX et al.
  1393.     (getcwd): Just declare if present.  If not, declare as a macro
  1394.     using getwd, and declare getwd.
  1395.     [PATH_MAX] (GET_PATH_MAX): #define to PATH_MAX.
  1396.     * main.c (main,    log_working_directory): Use getcwd instead of getwd.
  1397.  
  1398.     * main.c (main) [SETLINEBUF_MISSING]: Test this instead of USG.
  1399.  
  1400.     * make.h (SIGHANDLER, SIGNAL): Removed.
  1401.     (RETSIGTYPE): Define if not #define'd.
  1402.     * main.c (main): Use signal in place of SIGNAL.
  1403.  
  1404.     * main.c [SYS_SIGLIST_MISSING]: Test instead of USG.
  1405.  
  1406.     * job.c (search_path) [GETGROUPS_MISSING]: Test instead of USG.
  1407.     [HAVE_UNISTD_H]: Test instead of POSIX to not decl getgroups.
  1408.  
  1409.     * main.c [! HAVE_UNISTD_H]: Test instead of !POSIX to decl chdir.
  1410.     [! STDC_HEADERS]: Test instead of !POSIX to decl exit & atof.
  1411.  
  1412.     * job.c (child_handler), commands.c (fatal_error_signal): Return
  1413.     RETSIGTYPE instead of int.
  1414.     * main.c (main): Declare fatal_error_signal and child_handler here
  1415.     to return RETSIGTYPE; removed top-level decl of former.
  1416.  
  1417.     * commands.c (fatal_error_signal), job.c (unblock_sigs, start_job),
  1418.     main.c [SIGSETMASK_MISSING]: Test this instead of USG.
  1419.  
  1420. Wed Jun 10 22:06:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1421.  
  1422.     * job.c [HAVE_WAITPID]: Test this instead of USG.
  1423.     [! HAVE_UNISTD_H]: Test this instead of !POSIX to declare misc fns.
  1424.     (GID_T): Don't #define.
  1425.     (search_path): Use gid_t instead of GID_T.
  1426.     [GETDTABLESIZE_MISSING, SYS_SIGLIST_MISSING, DUP2_MISSING]: Test
  1427.     these individually instead of USG for all.
  1428.     * make.h (ctime): Don't declare.  #include time.h instead.
  1429.     [HAVE_UNISTD_H]: #include <unistd.h> and #define POSIX #ifdef
  1430.     _POSIX_VERSION.
  1431.     * dir.c [__GNU_LIBRARY__] (D_NAMLEN): Define to use d_namlen member.
  1432.     * make.h [NEED_MEMORY_H]: Only include memory.h #ifdef this.
  1433.  
  1434.     * arscan.c: Removed #ifdef mess about string.h et al.
  1435.     Just #include make.h instead.
  1436.     * make.h (fstat, atol): Declare.
  1437.  
  1438.     * commands.c (fatal_error_signal): Don't use sigmask to check for
  1439.     propagated signals; use ||s instead.
  1440.     (PROPAGATED_SIGNAL_MASK): Removed.
  1441.     (fatal_error_signal) [POSIX]: Use sigprocmask in place of sigsetmask.
  1442.  
  1443.     * variable.c (variable_buffer, variable_buffer_length,
  1444.     initialize_variable_output, variable_output): Moved to expand.c;
  1445.     made all static.
  1446.     (struct output_state, save_variable_output,
  1447.     restore_variable_output): Removed.
  1448.     * expand.c (initialize_variable_output): Put a NUL at the beginning
  1449.     of the new buffer after allocating it.
  1450.     (allocated_variable_expand_for_file): Don't use
  1451.     {save,restore}_variable_output.  Do it by hand instead, keeping
  1452.     state on the stack instead of malloc'ing it.
  1453.     (allocated_variable_expand): Removed.
  1454.     * variable.h (allocated_variable_expand): Define here as macro.
  1455.     (variable_buffer_output, initialize_variable_output,
  1456.     save_variable_output, restore_variable_output): Removed decls.
  1457.  
  1458.     * read.c (conditional_line): For an if cmd, if any elt of the
  1459.     conditionals stack is ignoring, just push a new level that ignores
  1460.     and return 1; don't evaluate the condition.
  1461.  
  1462. Thu Jun  4 21:01:20 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1463.  
  1464.     * main.c (main): Put #ifdef's around frobbing SIGSYS and SIGBUS.
  1465.  
  1466.     * job.c (getdtablesize): Don't declare or #define if already #define'd.
  1467.  
  1468. Wed Jun  3 23:42:36 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1469.  
  1470.     * file.c (snap_deps): If `.EXPORT_ALL_VARIABLES' is a target, set
  1471.     export_all_variables.
  1472.     * make.texinfo (Variables/Recursion): Document .EXPORT_ALL_VARIABLES.
  1473.  
  1474. Tue Jun  2 21:08:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1475.  
  1476.     * Version 3.62.13.
  1477.  
  1478.     * commands.c (set_file_variables): Calculate length for ^D and ?D
  1479.     individually, making sure to give them at least enough space for "./".
  1480.  
  1481.     * make.h [CRAY]: #define signal to bsdsignal.
  1482.  
  1483.     * default.c (default_variables) [CRAY]: Define PC, SEGLDR,
  1484.     CF77PPFLAGS, CF77PP, CFT, CF, and FC.
  1485.  
  1486.     * arscan.c (AR_HDR_SIZE): Define to sizeof (struct ar_hdr), if it
  1487.     wasn't defined by <ar.h>.
  1488.  
  1489. Thu May 28 00:56:53 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1490.  
  1491.     * Version 3.62.12.
  1492.  
  1493. Tue May 26 01:26:30 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1494.  
  1495.     * rule.c (new_pattern_rule): Initialize LASTRULE to nil, not
  1496.     pattern_rules.
  1497.  
  1498. Mon May 25 19:02:15 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1499.  
  1500.     * main.c (decode_switches): Initialize all the long_option elt members.
  1501.  
  1502. Thu May 21 16:34:24 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  1503.  
  1504.     * make.texinfo (Text Functions): Correct filter-out description.
  1505.  
  1506. Tue May 19 20:50:01 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1507.  
  1508.     * compatMakefile (realclean): Don't remove backup files.
  1509.  
  1510.     * main.c (decode_switches): Allocate ARGC+1 elts in `other_args'.
  1511.  
  1512. Sun May 17 16:38:48 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  1513.  
  1514.     * Version 3.62.11.
  1515.  
  1516. Thu May 14 16:42:33 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  1517.  
  1518.     * job.c (reap_children): Don't die if wait returns EINTR.
  1519.  
  1520. Wed May 13 18:28:25 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1521.  
  1522.     * job.c (reap_children): Always run the next command for a
  1523.     successful target.  If we are going to die, we don't want to leave
  1524.     the target partially made.
  1525.  
  1526. Tue May 12 00:39:19 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  1527.  
  1528.     * job.c (construct_command_argv_internal): After loop, if we only
  1529.     have one word, check it for being a shell command.
  1530.  
  1531.     * main.c (decode_switches): Allocate ARGC slots in other_args to
  1532.     begin with, so we never need to worry about growing it.
  1533.     If we get a non-option arg and POSIXLY_CORRECT is in the
  1534.     environment, break out of the loop.  After the loop, add all remaining
  1535.     args to other_args list.
  1536.  
  1537.     * main.c (decode_switches): For positive_int and floating switches
  1538.     when optarg is nil, use next arg if it looks right (start with a
  1539.     digit, or maybe decimal point for floating).
  1540.  
  1541.     * variable.c (define_automatic_variables): Always set SHELL to
  1542.     default if it comes from the environment.  Set its export bit.
  1543.     * make.texinfo (Environment): Document change.
  1544.  
  1545. Mon May 11 00:32:46 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  1546.  
  1547.     * Version 3.62.10.
  1548.  
  1549.     * compatMakefile (tags, TAGS): Use vars for cmds.
  1550.     (ETAGS, CTAGS): Define.
  1551.  
  1552.     * main.c (decode_switches): If a switches elt has a nil long_name,
  1553.     make the long option name elt be "".
  1554.     Fixed loop to not ignore all the options.
  1555.  
  1556.     * make.texinfo (Option Summary): Added long options.
  1557.  
  1558.     * main.c (switches): Changed -m's description to "-b".
  1559.     (decode_switches): When printing the usage message, don't print
  1560.     switches whose descriptions start with -.
  1561.     When constructing the list of names for switch -C, search the
  1562.     switches vector for switches whose descriptions are "-C".
  1563.  
  1564.     * main.c (switches): Call -S --no-keep-going, not --dont-keep-going.
  1565.     Call -I --include-dir, not --include-path.
  1566.     (long_option_aliases): Added --new == -W, --assume-new == -W,
  1567.     --assume-old == -o, --max-load == -l, --dry-run == -n, --recon == -n,
  1568.     --makefile == -f.
  1569.  
  1570.     * main.c (switches): Removed bogus "silent" elt.
  1571.     (long_option_aliases): Define new var.
  1572.     (decode_switches): Add long_option_aliases onto the end of the long
  1573.     options vector created for getopt_long.
  1574.     Look through long_option_aliases for extra names to list
  1575.     in usage message.
  1576.  
  1577. Sat May  9 00:21:05 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1578.  
  1579.     * main.c (log_working_directory): Fixed to properly not print the
  1580.     leaving message when we haven't printed the entering message.
  1581.  
  1582. Fri May  8 21:55:35 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1583.  
  1584.     * main.c (struct command_switch): Added elts `long_name', 
  1585.     `description', and `argdesc'.
  1586.     (switches): Added initializers for new members.
  1587.     (decode_switches): Rewritten to use getopt_long.
  1588.     * compatMakefile (GETOPT, GETOPT_SRC): Define.
  1589.     (objs, srcs): Include them.
  1590.  
  1591.     * job.c (child_died): Renamed to dead_children; made static.
  1592.     (child_handler): Increment dead_children instead of setting child_died.
  1593.     (reap_children): Decrement dead_children instead of clearing
  1594.     child_died.  The point of all this is to avoid printing "waiting
  1595.     for unfinished jobs" when we don't actually need to block.
  1596.     This happened when multiple SIGCHLDs before reap_children was called.
  1597.  
  1598.     * job.c (reap_children): If ERR is set, so we don't call start_job
  1599.     on the child being reaped, instead set its command_state to
  1600.     cs_finished.
  1601.     (reap_children, child_handler, new_job): I added several
  1602.     debugging printf's while fixing this.  I left them in if (debug_flag) 
  1603.     because they may be useful for debugging this stuff again.
  1604.  
  1605. Wed May  6 22:02:37 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  1606.  
  1607.     * read.c (read_makefile): v_export is not 1.
  1608.  
  1609. Mon May  4 17:27:37 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1610.  
  1611.     * Version 3.62.9.
  1612.  
  1613.     * variable.c (export_all_variables): New variable.
  1614.     (target_environment): Export variables whose `export' member is
  1615.     v_default if export_all_variables is set and their names are benign.
  1616.     * variable.h: Declare export_all_variables.
  1617.     * read.c (read_makefile): If export or unexport is given with no
  1618.     args, set or clear export_all_variables, respectively.
  1619.  
  1620.     * variable.c (target_environment): Exclude MAKELEVEL in the loop,
  1621.     so it isn't duplicated when we add it at the end.
  1622.  
  1623. Sun May  3 17:44:48 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1624.  
  1625.     * Version 3.62.8.
  1626.  
  1627.     * variable.h (struct variable): Added new member `export'.
  1628.     * variable.c (define_variable_in_set): Initialize it to v_default.
  1629.     (target_environment): Don't check for .NOEXPORT.
  1630.     Export variables whose `export' member is v_default and that would
  1631.     have been exported under .NOEXPORT, and variables whose `export'
  1632.     member is v_export.
  1633.     (try_variable_definition): Return the variable defined.
  1634.     * variable.h (try_variable_definition): Changed decl.
  1635.     * read.c (read_makefile): Recognize `export' and `unexport' directives.
  1636.  
  1637. Fri May  1 11:39:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  1638.  
  1639.     * main.c (main) [POSIX]: Reversed args to sigaddset.
  1640.  
  1641. Thu Apr 30 17:33:32 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1642.  
  1643.     * job.c [POSIX || !USG] (unblock_sigs): New fn.
  1644.     (start_job): Block signals before forking.
  1645.     (new_job): Unblock signals after putting the new child on the chain.
  1646.     * main.c (main) [POSIX]: Use sigset_t fatal_signal_set instead of
  1647.     int fatal_signal_mask.
  1648.  
  1649.     * load.c [sgi] (LDAV_CVT): Define.
  1650.  
  1651. Wed Apr 29 17:15:59 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  1652.  
  1653.     * Version 3.62.7.
  1654.  
  1655.     * load.c (load_average) [sgi]: Clear the high bit of the address
  1656.     from the symbol table before looking it up in kmem.
  1657.  
  1658.     * misc.c (fatal, makefile_fatal): Put *** in fatal error messages.
  1659.     (remake_file): No longer needed in message here.
  1660.  
  1661.     * main.c (die): Call reap_children with BLOCK==1.
  1662.  
  1663. Tue Apr 28 20:44:35 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  1664.  
  1665.     * rule.c (freerule): Don't set LASTRULE->next if LASTRULE is nil.
  1666.  
  1667. Sun Apr 26 15:09:51 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  1668.  
  1669.     * rule.c (count_implicit_rule_limits): Initialize LASTRULE to nil,
  1670.     not to head of chain.  Extract next ptr before we might do
  1671.     freerule, and use that for next iteration.
  1672.     (freerule): Still do next ptr frobbing if LASTRULE is nil.
  1673.  
  1674. Tue Apr 21 03:16:29 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1675.  
  1676.     * job.c (child_error): Removed extra %s from error msg format.
  1677.  
  1678.     * Version 3.62.6.
  1679.  
  1680.     * job.c (reap_children): Don't start later commands in a sequence
  1681.     if ERR is nonzero.
  1682.  
  1683.     * job.c (new_job): Always call reap_children with BLOCK==0 first thing.
  1684.  
  1685.     * job.c (reap_children): New function; work that used to be done in
  1686.     child_handler.
  1687.     (child_died): New global var.
  1688.     (child_handler): Now just sets child_died.
  1689.     (wait_for_children): Removed.
  1690.     (unknown_children_possible, block_signals, unblock_signals,
  1691.     push_signals_blocked_p, pop_signals_blocked_p): Removed.
  1692.     (child_execute_job): Removed call to unblock_signals.
  1693.     (new_job): Removed calls to push_signals_blocked_p and
  1694.     pop_signals_blocked_p.
  1695.     * job.h: Declare reap_children, not wait_for_children.
  1696.     * commands.c (fatal_error_signal), job.c (new_job),
  1697.     load.c [LDAV_BASED] (wait_to_start_job), main.c (die),
  1698.     remake.c (update_goal_chain), function.c (expand_function: `shell'):
  1699.     Changed wait_for_children calls to reap_children.
  1700.     Some needed to be loops to wait for all children to die.
  1701.     * commands.c (fatal_error_signal), main.c (main,
  1702.     log_working_directory), function.c (expand_function): Removed calls
  1703.     to push_signals_blocked_p and pop_signals_blocked_p.
  1704.     * job.h: Removed decls.
  1705.  
  1706.     * job.h: Added copyright notice.
  1707.  
  1708. Wed Apr 15 02:02:40 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1709.  
  1710.     * job.c (child_error): No *** for ignored error.
  1711.  
  1712. Tue Apr 14 18:31:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1713.  
  1714.     * implicit.c (DEBUGP2): Use do ... while (0) instead of if ... else to
  1715.     avoid compiler warnings.
  1716.  
  1717.     * read.c (parse_file_seq): Don't remove ./ when it is followed by a
  1718.     blank.
  1719.  
  1720. Mon Apr 13 21:56:15 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1721.  
  1722.     * make.h (DEBUGPR): Use do ... while (0) instead of if ... else to
  1723.     avoid compiler warnings.
  1724.  
  1725.     * remake.c (notice_finished_file): Run file_mtime on the also_make
  1726.     files, so vpath_search can happen.
  1727.  
  1728.     * GNUmakefile (tests): Use perl test suite from csa@sw.stratus.com.
  1729.     (alpha-files): Include test suite tar file.
  1730.  
  1731. Fri Apr  3 00:50:13 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1732.  
  1733.     * Version 3.62.5.
  1734.  
  1735. Wed Apr  1 05:31:18 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1736.  
  1737.     * remake.c (update_file, update_file_1): Do check_renamed on elts
  1738.     of dep chains when traversing them.  Something unrelated might have
  1739.     renamed one of the files the dep chain points to.
  1740.  
  1741.     * file.c (rename_file): If FILE has been renamed, follow its
  1742.     `renamed' ptr, so we get to the final real FILE.  Using the renamed
  1743.     ones loses because they are not in the hash table, so the removal
  1744.     code loops infinitely.
  1745.  
  1746.     * read.c (read_all_makefiles): Clobber null terminator into
  1747.     MAKEFILES expansion, so string passed to read_makefile is properly
  1748.     terminated.
  1749.  
  1750. Mon Mar 30 20:18:02 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1751.  
  1752.     * commands.c (set_file_variables): $* for archive member with
  1753.     explicit cmds is stem of member, not of whole `lib(member)'.
  1754.  
  1755. Thu Mar 26 15:24:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  1756.  
  1757.     * Version 3.62.4.
  1758.  
  1759. Tue Mar 24 05:20:51 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1760.  
  1761.     * rule.c (new_pattern_rule): Rules are identical only if all their
  1762.     targets match (regardless of order).
  1763.  
  1764. Wed Mar 11 13:49:54 1992  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1765.  
  1766.     * remake.c (remake_file): Changed error "no way to make" to "no
  1767.     rule to make".  Fiat Hugh.
  1768.  
  1769.     * make.texinfo (Last Resort): Describe %:: rules and new .DEFAULT
  1770.     behavior.
  1771.  
  1772.     * remake.c (update_file_1): Only use .DEFAULT cmds if FILE is not a
  1773.     target.
  1774.  
  1775. Tue Mar 10 18:13:13 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  1776.  
  1777.     * remote-stub.c, remote-cstms.c (start_remote_job): Take new arg,
  1778.     environment to pass to child.
  1779.     * job.c (start_job): Pass it.
  1780.  
  1781. Mon Mar  9 19:00:11 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1782.  
  1783.     * file.c (enter_file): Also strip ./s here, to get command-line
  1784.     target names.
  1785.  
  1786.     * remote-cstms.c: Add comment telling people to leave me alone.
  1787.  
  1788.     * compatMakefile (manpage install): Remove target before copying.
  1789.  
  1790. Tue Mar  3 18:43:21 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1791.  
  1792.     * make.texinfo (Missing): Renamed to "Incompatibilities and ...".
  1793.     Added paragraph describing $? incompatibility with Unix and POSIX.2.
  1794.  
  1795. Sun Mar  1 15:50:54 1992  Roland McGrath  (roland@nutrimat.gnu.ai.mit.edu)
  1796.  
  1797.     * function.c (expand_function: `shell'): Don't declare fork or pipe.
  1798.     Use vfork instead of fork.
  1799.  
  1800. Tue Feb 25 22:05:32 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  1801.  
  1802.     * make.texinfo (Chained Rules): Clarify .PRECIOUS to save
  1803.     intermediate files.
  1804.  
  1805.     * load.c [sun] (LDAV_CVT): Define to divide by FSCALE.
  1806.  
  1807. Sun Feb 16 02:05:16 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  1808.  
  1809.     * Version 3.62.3.
  1810.  
  1811. Sat Feb 15 17:12:20 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  1812.  
  1813.     * compatMakefile (makeinfo): Use emacs batch-texinfo-format fn.
  1814.  
  1815. Fri Feb 14 00:11:55 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  1816.  
  1817.     * read.c (read_makefile): Correctly handle define & endef in ifdefs.
  1818.  
  1819.     * read.c (record_files): Pass arg for %s in error msg.
  1820.  
  1821.     * main.c (main) [__IBMR2, POSIX]: Use correct (a la USGr3) setvbuf
  1822.     call.
  1823.  
  1824. Wed Feb 12 12:07:39 1992  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  1825.  
  1826.     * make.texinfo (Libraries/Search): Say it does /usr/local/lib too.
  1827.  
  1828. Sun Feb  9 23:06:24 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1829.  
  1830.     * read.c (read_makefile): Check for extraneous `endef' when ignoring.
  1831.  
  1832. Thu Feb  6 16:15:48 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1833.  
  1834.     * Version 3.62.2.
  1835.  
  1836. Tue Feb  4 20:04:46 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1837.  
  1838.     * job.c (construct_command_argv_internal): Correctly ignore
  1839.     whitespace after backslash-NL.
  1840.  
  1841. Fri Jan 31 18:30:05 1992  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1842.  
  1843.     * compatMakefile: Ignore errors from chgrp and chmod when installing.
  1844.  
  1845. Wed Jan 29 18:13:30 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  1846.  
  1847.     * main.c (main): When setting MAKELEVEL in the env to re-exec,
  1848.     allocate space so as not to clobber past the end of the old string.
  1849.  
  1850.     * make.h [HAVE_ALLOCA_H]: Include <alloca.h>
  1851.     * compatMakefile (defines): Document HAVE_ALLOCA_H.
  1852.  
  1853. Mon Jan 20 13:40:05 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  1854.  
  1855.     * make.h [VFORK_MISSING]: Use fork instead.
  1856.     * compatMakefile (defines): Document same.
  1857.  
  1858.     * job.c (construct_command_argv_internal): Don't create an empty
  1859.     arg if backslash-NL is at beginning of word.
  1860.  
  1861. Sun Jan 19 16:26:53 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  1862.  
  1863.     * main.c [DGUX]: Call setvbuf as for USGr3.
  1864.  
  1865.     * job.c (construct_command_argv_internal): Notice correctly that
  1866.     backslash-NL is the end of the arg (because it is replaced with a
  1867.     space).
  1868.  
  1869. Thu Jan 16 18:42:38 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  1870.  
  1871.     * job.c (construct_command_argv_internal): If SHELL is nil, set it
  1872.     to default_shell before proceeding.
  1873.  
  1874.     * make.h [sgi]: No alloca.h, after all.
  1875.  
  1876. Wed Jan 15 12:30:04 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  1877.  
  1878.     * read.c (multi_glob): Cons up the chain of the results of glob
  1879.     from back to front, so it comes out in forward order.
  1880.  
  1881.     * job.c (construct_command_argv_internal): Don't eat char following
  1882.     backslash-NL.
  1883.  
  1884. Mon Jan 13 19:16:56 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  1885.  
  1886.     * Version 3.62.1.
  1887.  
  1888.     * default.c (default_variables) [ultrix]: GET=get, like USG.
  1889.  
  1890.     * job.c (construct_command_argv_internal): Remove tabs following
  1891.     backslash-NL combos in the input line, so they don't show up when
  1892.     that line is printed.
  1893.  
  1894.     * read.c (read_makefile): Don't collapse_continuations the line on
  1895.     input; do it on the copy we do remove_comments on.
  1896.     For rule lines, collapse_continuations the line after chopping
  1897.     ";cmds" off the end, so we don't eat conts in the cmds.
  1898.     Give error for ";cmds" with no rule.
  1899.     * job.c (construct_command_argv_internal): Eat backslash-NL combos
  1900.     when constructing the line to recurse on for slow, too.
  1901.  
  1902. Sat Jan 11 02:20:27 1992  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  1903.  
  1904.     * file.c (enter_file): Don't strip leading `./'s.
  1905.     * read.c (parse_file_seq): Take new arg STRIP; if nonzero, do it here.
  1906.     * default.c (set_default_suffixes), function.c (string_glob),
  1907.     read.c (read_makefile), rule.c (install_pattern_rule): Change callers.
  1908.  
  1909.     * default.c (default_variables) [_IBMR2]: FC=xlf
  1910.  
  1911.     * job.c (construct_command_argv_internal): Turn backslash-NL and
  1912.     following whitespace into a single space, rather than just eating
  1913.     the backslash.
  1914.  
  1915.     * make.texinfo (Copying): @include gpl.texinfo, rather than
  1916.     duplicating its contents.
  1917.  
  1918. Fri Nov  8 20:06:03 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1919.  
  1920.     * job.c (construct_command_argv_internal): Make sure not to bother
  1921.     processing an empty line.
  1922.  
  1923.     * Version 3.62.0.
  1924.  
  1925.     * job.c (construct_command_argv_internal): Always recurse for slow;
  1926.     simple case didn't handle finding newlines.
  1927.  
  1928. Tue Nov  5 18:51:10 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  1929.  
  1930.     * job.c (construct_command_argv_internal): Set RESTP properly when
  1931.     slow; don't \ify past a newline.
  1932.  
  1933. Fri Nov  1 19:34:28 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1934.  
  1935.     * make.h [sgi]: #include <alloca.h>.
  1936.  
  1937. Tue Oct 29 20:57:36 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1938.  
  1939.     * Version 3.62.
  1940.  
  1941.     * remake.c (update_file_1): Check for deps still running before
  1942.     giving up if any dep has failed.
  1943.  
  1944. Sat Oct 26 16:20:00 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1945.  
  1946.     * make.h [uts]: #undef S_ISREG and S_ISDIR if defined.
  1947.  
  1948. Fri Oct 25 19:50:39 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1949.  
  1950.     * Version 3.60.17.
  1951.  
  1952. Thu Oct 24 16:58:36 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  1953.  
  1954.     * job.c (start_job): Don't check for empty cmds before tweaking the
  1955.     command_ptr.  Just let construct_command_argv do it.
  1956.  
  1957. Tue Oct 22 20:21:03 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  1958.  
  1959.     * remake.c, arscan.c [POSIX]: <fcntl.h> instead of <sys/file.h>.
  1960.  
  1961.     * make.h [POSIX]: Declare vfork as pid_t.
  1962.  
  1963. Mon Oct 21 15:37:30 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1964.  
  1965.     * Version 3.60.16.
  1966.  
  1967.     * job.c (construct_command_argv, construct_command_argv_internal):
  1968.     Take new 2nd arg RESTP.  If non-NULL, stop parsing at newline, and
  1969.     store addr of the NL in *RESTP.
  1970.     (start_job): Don't chop expanded cmd lines up; use above code to do it.
  1971.     * function.c (expand_function: `shell'): Pass RESTP==NULL.
  1972.  
  1973. Sat Oct 19 15:36:34 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1974.  
  1975.     * Version 3.60.15.
  1976.  
  1977. Fri Oct 18 15:26:55 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  1978.  
  1979.     * job.c (start_job): If on the same cmds->command_lines elt, look
  1980.     at cmds->lines_recurse[CHILD->command_line - 1] instead of
  1981.     [CHILD->command_line].
  1982.  
  1983.     * dir.c [sgi]: <sys/dir.h>, not ndir or anything else.
  1984.  
  1985. Thu Oct 17 16:28:55 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1986.  
  1987.     * file.c (print_file_data_base): Remove unused var.
  1988.  
  1989.     * make.h [NeXT]: No #define ANSI_STRING.
  1990.  
  1991. Tue Oct 15 20:08:41 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1992.  
  1993.     * Version 3.60.14.
  1994.  
  1995. Fri Oct 11 16:23:52 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  1996.  
  1997.     * make.h: Use PATH_MAX for getwd defn.
  1998.  
  1999.     * make.h: Move getcwd/getwd outside of #ifndef POSIX, and make it
  2000.     #if USG||POSIX.
  2001.  
  2002. Thu Oct 10 11:53:31 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2003.  
  2004.     * Version 3.60.13.
  2005.  
  2006.     * read.c (read_all_makefiles): When processing MAKEFILES, save the
  2007.     malloc'd ptr to be freed, instead of freeing part-way thru it.
  2008.  
  2009.     * remake.c (update_file_1): Don't tweak FILE->also_make.
  2010.     (update_file): Do it here.  After calling update_file_1, set the
  2011.     command_state, update_status, and updated members of each also_make
  2012.     elt to FILE's values.
  2013.  
  2014. Tue Oct  8 14:56:04 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2015.  
  2016.     * Version 3.60.12.
  2017.  
  2018.     * remake.c (notice_finished_file): Set command_state of FILE and
  2019.     its also_make chain to cs_finished here.
  2020.     * commands.c (execute_file_commands), job.c (child_handler),
  2021.     remake.c (remake_file): Don't set it before calling
  2022.     notice_finished_file.
  2023.  
  2024.     * file.h (struct file): Changed `also_make' to struct dep *.
  2025.     * job.c (delete_child_targets), file.c (print_file_data_base),
  2026.     remake.c (notice_finished_file), implicit.c (pattern_search):
  2027.     Use dep chain instead of array of file names.
  2028.  
  2029. Mon Oct  7 17:04:33 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2030.  
  2031.     * Version 3.60.11.
  2032.  
  2033.     * arscan.c: Declare open.
  2034.     * misc.c: Declare {get,set}{re,}[ug]id.
  2035.     * variable.c (target_environment): Declare getenv.
  2036.  
  2037. Sat Oct  5 15:13:03 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2038.  
  2039.     * make.h [NeXT]: <string.h> instead of <strings.h>.
  2040.  
  2041. Fri Oct  4 16:05:41 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2042.  
  2043.     * default.c (default_suffixes, defualt_suffix_rules): Add .texi
  2044.     just like .texinfo.
  2045.  
  2046.     * Version 3.60.10.
  2047.  
  2048.     * job.c: Move vfork decl into make.h.
  2049.  
  2050. Fri Sep 27 18:45:30 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2051.  
  2052.     * compatMakefile (glob/libglob.a): Pass CC value to submake.
  2053.  
  2054. Thu Sep 26 00:08:15 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2055.  
  2056.     * load.c (load_average): Made not static.
  2057.  
  2058.     * load.c [ultrix && vax]: Define LDAV_TYPE and LDAV_CVT for Ultrix 4.2.
  2059.  
  2060. Tue Sep 24 00:17:20 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2061.  
  2062.     * Version 3.60.9.
  2063.  
  2064.     * read.c (record_files): Warn about extra cmds even if the target's
  2065.     name begins with a dot.  I think the lusers can handle this.
  2066.  
  2067. Mon Sep 23 22:33:26 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2068.  
  2069.     * make.h, arscan.c: Don't declare bcmp, bzero, or bcopy if they're
  2070.     #define'd.
  2071.     * make.h: Declare write and open.
  2072.  
  2073.     * default.c (default_suffixes, default_suffix_rules,
  2074.     default_variables): Add .C just like .cc.
  2075.     * make.texinfo (Catalogue of Rules): Document .C.
  2076.  
  2077.     * make.man (-w): Fix gramo.
  2078.  
  2079. Fri Sep 20 17:18:16 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2080.  
  2081.     * make.h: No text after #endif.
  2082.  
  2083. Sun Sep 15 16:20:46 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2084.  
  2085.     * Version 3.60.8.
  2086.  
  2087.     * implicit.c (pattern_search): In the second pass, recurse on rule
  2088.     deps that don't have a %.  Why did I make it not do this?
  2089.  
  2090. Fri Sep 14 18:29:39 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2091.  
  2092.     * read.c (record_files): For extra cmds, use the last ones given.
  2093.     If the target's name doesn't begin with a dot (bletch!!), emit a
  2094.     two-line warning, one line giving the old cmds' location and the
  2095.     other the new cmds' location.
  2096.  
  2097.     * misc.c (makefile_error, makefile_fatal): New fns.
  2098.     * make.h: Declare them.
  2099.     * Use them instead of error/fatal for all msgs including a file
  2100.     name and line number.
  2101.  
  2102. Thu Sep 13 16:35:54 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2103.  
  2104.     * make.h: Declare define_default_variables.
  2105.     Declare ar_parse_name, instead of ar_name_parse (M-t).
  2106.  
  2107. Mon Sep 10 18:35:40 1991  Roland McGrath  (roland@wookumz.gnu.ai.mit.edu)
  2108.  
  2109.     * Version 3.60.7.
  2110.  
  2111.     * make.texinfo (Variables: Setting): Say whitespace is removed if
  2112.     "immediately after =", rather than simply "after =".
  2113.  
  2114.     * job.c: Don't declare wait #ifdef POSIX.
  2115.  
  2116.     * make.h [__GNUC__]: #undef alloca and then #define it.
  2117.  
  2118.     * main.c (main): When pruning makefiles which might loop from the
  2119.     read_makefiles chain, look at all `prev' entries of double-colon rules.
  2120.  
  2121. Fri Sep  7 00:41:53 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2122.  
  2123.     * main.c (main): Only remove makefiles with cmds but no deps from
  2124.     the list of makefiles to be rebuilt if they are :: targets.
  2125.     : targets with cmds and no deps are not dangerous.
  2126.  
  2127. Wed Sep  5 17:35:51 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2128.  
  2129.     * compatMakefile (defines): Add comment that some compilers take
  2130.     ENUM_BITFIELDS but produce bogus code.
  2131.     (LOAD_AVG): Fix examples to \ "s.
  2132.     (LOADLIBES): Add comment that SGI Irix needs -lmld for nlist.
  2133.  
  2134. Tue Sep  4 20:26:26 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2135.  
  2136.     * Version 3.60.6.
  2137.  
  2138. Fri Aug 30 19:34:04 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2139.  
  2140.     * remake.c (update_file_1): When checking the command_state of
  2141.     deps, check through the prev chain.
  2142.     (update_goal_chain): When a target is finished, start checking its
  2143.     prev (if it has one) instead.
  2144.  
  2145. Wed Aug  7 17:32:03 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2146.  
  2147.     * rule.c (convert_to_pattern): Allow files with deps to define
  2148.     suffix rules (really this time).
  2149.  
  2150. Mon Aug  5 17:09:21 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2151.  
  2152.     * misc.c (user_access, make_access): Do saved-IDs (USG) flavor
  2153.     #ifdef POSIX.
  2154.  
  2155.     * file.c (enter_file): Strip ./s here.
  2156.     * read.c (parse_file_seq): Not here.
  2157.  
  2158. Tue Jul 23 23:34:30 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2159.  
  2160.     * compatMakefile: Added comment that -lPW alloca is broken on HPUX.
  2161.  
  2162. Thu Jul 18 03:10:41 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2163.  
  2164.     * Version 3.60.5.
  2165.  
  2166.     * read.c (read_makefile): Ignore lines containing chars that are
  2167.     all isspace, not just all isblank.
  2168.  
  2169.     * make.texinfo (Copying): @include gpl.texinfo, rather than copying
  2170.     the text.
  2171.     * gpl.texinfo: New file (symlink to /gd/gnu/doc/gpl.texinfo).
  2172.     * GNUmakefile: Put gpl.texinfo in distribution.
  2173.  
  2174. Tue Jul 16 12:50:35 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2175.  
  2176.     * make.h: #define _GNU_SOURCE before including headers.
  2177.     Include <ctype.h> and define isblank if <ctype.h> doesn't.
  2178.     * commands.c: Don't include <ctype.h> here.
  2179.     * *.c: Use isblank instead of explicit ' ' || '\t'.
  2180.  
  2181. Mon Jul 15 17:43:38 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2182.  
  2183.     * function.c (expand_function: `filter'/`filter-out'): Fixed to not
  2184.     loop infinitely.
  2185.  
  2186. Fri Jul 12 12:18:12 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2187.  
  2188.     * function.c (expand_function: `filter'/`filter-out'): Rewritten to
  2189.     handle filter-out of multiple patterns properly.  Also no longer
  2190.     mallocs and reallocs for temp array; uses alloca and a linked-list
  2191.     instead.
  2192.  
  2193. Wed Jul 10 22:34:54 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2194.  
  2195.     * Version 3.60.4.
  2196.  
  2197.     * make.texinfo: Moved some @groups that were outside @examples to
  2198.     be inside them.
  2199.  
  2200.     * load.c [apollo] (load_average): Define using special syscall for
  2201.     Apollo DOMAIN/OS SR10.n.
  2202.  
  2203. Thu Jul  4 12:32:53 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2204.  
  2205.     * make.texinfo (Missing): Added Unix excessive implicit rule
  2206.     search; mention that POSIX.2 doesn't require any of the missing
  2207.     features.
  2208.     (Top): Updated printed manual price to $15.
  2209.  
  2210. Wed Jul  3 18:17:50 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2211.  
  2212.     * file.c (rename_file): Carry over last_mtime when merging files.
  2213.     * remake.c (f_mtime): Tail-recurse after renaming VPATH file, to
  2214.     check for saved date in existing renamed-to file.
  2215.  
  2216.     * remote-cstms.c (start_remote_job): Use PATH_VAR.
  2217.  
  2218.     * commands.c [POSIX || __GNU_LIBRARY__]: Don't declare getpid.
  2219.  
  2220.     * compatMakefile (glob-{clean,realclean}): Run clean/realclean in glob.
  2221.     (clean, realclean): Require those.
  2222.  
  2223.     * make.h: Always declare environ.
  2224.     Don't declare old glob functions.
  2225.  
  2226.     * GNUmakefile: Make no-lib deps for load.c and remote.c.
  2227.  
  2228. Tue Jul  2 18:35:20 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2229.  
  2230.     * Version 3.60.3.
  2231.  
  2232. Mon Jul  1 16:58:30 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2233.  
  2234.     * read.c (multi_glob): Don't pass GLOB_QUOTE flag to glob.
  2235.  
  2236.     * make.h [POSIX]: Include <unistd.h>, and don't declare things that
  2237.     should be there.
  2238.  
  2239.     * main.c (main) [USG && sgi]: malloc a buffer for broken sgi stdio.
  2240.  
  2241. Sat Jun 29 11:22:21 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2242.  
  2243.     * function.c (expand_function: `shell'): Use alloca for the error
  2244.     msg buffer, instead of assuming an arbitrary max size.
  2245.  
  2246. Fri Jun 28 18:15:08 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2247.  
  2248.     * job.c [POSIX] (search_path): Do real 1003.1 goop to get NGROUPS_MAX.
  2249.  
  2250. Wed Jun 26 11:04:44 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2251.  
  2252.     * default.c (define_default_variables): New fn.
  2253.     (install_default_implicit_rules): Code for above fn moved there.
  2254.     * main.c (main): Do define_default_variables before reading the
  2255.     makefile.
  2256.  
  2257. Tue Jun 25 17:30:46 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2258.  
  2259.     * main.c (main): Quote ; in MAKEOVERRIDES.
  2260.  
  2261. Tue Jun 18 13:56:30 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2262.  
  2263.     * compatMakefile: Fixed typo in comment.
  2264.  
  2265. Tue Jun 11 00:14:59 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2266.  
  2267.     * Version 3.60.2.
  2268.  
  2269. Mon Jun 10 14:46:37 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2270.  
  2271.     * make.h: Always include <sys/types.h>.
  2272.     [POSIX]: Include <limits.h> and #define MAXPATHLEN to be PATH_MAX.
  2273.  
  2274.     * default.c (default_suffix_rules: .texinfo.dvi): Use $(TEXI2DVI).
  2275.     (default_variables): Define TEXI2DVI.
  2276.  
  2277. Thu Jun  6 16:49:19 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2278.  
  2279.     * Version 3.60.1.
  2280.  
  2281.     * make.h (SIGNAL): Cast handler arg to SIGHANDLER type.
  2282.  
  2283. Wed Jun  5 06:00:43 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2284.  
  2285.     * read.c (multi_glob): Use POSIX.2 `glob' function.
  2286.     If a glob pattern matches nothing, leave it as is (a la sh, bash).
  2287.     Also, if can't find USER for ~USER, leave it as is (a la bash).
  2288.  
  2289. Mon Jun  3 16:36:00 1991  Roland McGrath  (roland@albert.gnu.ai.mit.edu)
  2290.  
  2291.     * compatMakefile: Rewrote comments about -Ds to be easier to use.
  2292.  
  2293.     * make.h, arscan.c, remake.c, main.c, dir.c, job.c: Changed tests
  2294.     of _POSIX_SOURCE to POSIX.
  2295.  
  2296.     * job.c: Take getdtablesize out of #ifdef __GNU_LIBRARY__.
  2297.     Put separately #ifdef USG.
  2298.  
  2299.     * COPYING: Replaced with version 2.
  2300.     * Changed copyright notices to refer to GPL v2.
  2301.  
  2302. Thu May 30 00:31:11 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2303.  
  2304.     * make.h: Don't declare sigblock for POSIX.
  2305.  
  2306.     * main.c (main, log_working_directory) [USG]: Get getcwd failure
  2307.     mode from errno, not passed buffer like BSD getwd.
  2308.  
  2309.     * misc.c (child_access): New fn to set access for a child process;
  2310.     like user_access, but you can't change back.
  2311.     * make.h: Declare it.
  2312.     * job.c (exec_command): Use it in place of user_access.
  2313.  
  2314. Wed May 29 23:28:48 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2315.  
  2316.     * default.c (default_variables) [pyr]: PC = pascal.
  2317.  
  2318. Tue May 28 20:24:56 1991  Roland McGrath  (roland@churchy.gnu.ai.mit.edu)
  2319.  
  2320.     * variable.c (print_variable): Put a newline before `endef'.
  2321.  
  2322. Sat May 25 02:39:52 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2323.  
  2324.     * Version 3.60.
  2325.  
  2326. Wed May 22 19:41:37 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2327.  
  2328.     * Version 3.59.5.
  2329.  
  2330. Thu May 16 13:59:24 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2331.  
  2332.     * main.c (main): Do USGr3 setvbuf behavior #ifdef APOLLO.
  2333.     Don't handle SIGCHLD #ifdef USG (Apollo is USG but defines SIGCHLD).
  2334.  
  2335. Fri May 10 14:59:33 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2336.  
  2337.     * remake.c [sgi]: Don't include <sys/file.h>.
  2338.  
  2339. Wed May  8 01:54:08 1991  Roland McGrath  (roland@geech.gnu.ai.mit.edu)
  2340.  
  2341.     * make.h (SIGHANDLER): #define as (void *) #if __STDC__,
  2342.     else (int (*)()).
  2343.     (SIGNAL): Use it to cast return value.
  2344.     * main.c (main): Cast SIG_IGN to SIGHANDLER when comparing.
  2345.     * job.c (block_signals, unblock_signals): Use SIGNAL instead of signal.
  2346.  
  2347.     * main.c: Declare mktemp to return char*, not int.
  2348.  
  2349.     * job.c (new_job): Don't increment files_remade.
  2350.     * remake.c (notice_finished_file): Do it here.
  2351.  
  2352.     * read.c (do_define): Don't clobber DEFINITION[-1] on empty defns.
  2353.     Free storage that is no longer needed.
  2354.  
  2355. Wed Apr 24 20:49:48 1991  Roland McGrath  (roland at churchy.gnu.ai.mit.edu)
  2356.  
  2357.     * misc.c (message): New fn to print informational msgs with
  2358.     leading "make: " or "make[N]: ".
  2359.     * make.h: Declare it.
  2360.     * remake.c (update_file): Use it instead of printf.
  2361.  
  2362. Fri Apr 19 05:52:45 1991  Roland McGrath  (roland at churchy.gnu.ai.mit.edu)
  2363.  
  2364.     * main.c (main): When there are no targets, if there were no
  2365.     makefiles, print a different error message, which mentions makefiles.
  2366.  
  2367. Tue Apr 16 03:22:45 1991  Roland McGrath  (roland at geech.gnu.ai.mit.edu)
  2368.  
  2369.     * remake.c (update_file): Print "nothing to be done" instead of "is
  2370.     up to date" if FILE->cmds == 0.
  2371.  
  2372.     * job.c [!WIFEXITED]: Define if not already defined.
  2373.  
  2374. Thu Apr 11 18:00:50 1991  Roland McGrath  (roland at wookumz.gnu.ai.mit.edu)
  2375.  
  2376.     * arscan.c (ar_name_equal): Fixed truncation comparison.
  2377.  
  2378. Tue Apr  2 16:17:35 1991  Roland McGrath  (roland at churchy.gnu.ai.mit.edu)
  2379.  
  2380.     * glob.c: Use common version from djm.
  2381.     * dir.c: Snarfed #ifdef mess for <dirent.h> or whatever from glob.c.
  2382.     (dir_file_exists_p): Ignore directory entries with d_ino==0.
  2383.  
  2384. Mon Apr  1 20:49:45 1991  Roland McGrath  (roland at albert.gnu.ai.mit.edu)
  2385.  
  2386.     * Version 3.59.4.
  2387.  
  2388. Fri Mar 29 19:16:18 1991  Roland McGrath  (roland at albert.gnu.ai.mit.edu)
  2389.  
  2390.     * job.c (free_child): Free CHILD->environment and its elts.
  2391.  
  2392. Sat Mar 23 14:08:09 1991  Roland McGrath  (roland at albert.gnu.ai.mit.edu)
  2393.  
  2394.     * read.c (read_makefile): Don't ignore lines containing only
  2395.     comments if they start with a tab.  Such lines should be passed to
  2396.     the shell for it to decide about the comments.
  2397.  
  2398.     * job.c (free_child): Free CHILD->command_lines and its elts, not
  2399.     CHILD->commands (which is obsolete).
  2400.     * job.h, job.c: Remove obsolete `commands' member of `struct child'.
  2401.  
  2402. Sun Mar 17 18:40:53 1991  Roland McGrath  (roland at albert.ai.mit.edu)
  2403.  
  2404.     * remake.c (update_file): Print a msg for a top-level up-to-date
  2405.     phony target (a different one than for a real file).
  2406.  
  2407.     * read.c (conditional_line): Boundary check so we don't check the
  2408.     value of the -1th elt of the stack (which is bogus).
  2409.  
  2410. Sat Mar 16 16:58:47 1991  Roland McGrath  (roland at albert.ai.mit.edu)
  2411.  
  2412.     * read.c (conditional_line): Don't evaluate an if* when we're
  2413.     already ignoring.  Instead, just push a new level, with a value of
  2414.     1, to keep ignoring.
  2415.  
  2416. Tue Mar 12 00:16:52 1991  Roland McGrath  (roland at geech.ai.mit.edu)
  2417.  
  2418.     * Version 3.59.3.
  2419.  
  2420. Mon Mar 11 23:56:57 1991  Roland McGrath  (roland at geech.ai.mit.edu)
  2421.  
  2422.     * job.c (construct_command_argv_internal): Quote backslashes
  2423.     when building the shell -c line.
  2424.  
  2425. Fri Mar  8 01:40:18 1991  Roland McGrath  (roland at geech.ai.mit.edu)
  2426.  
  2427.     * job.c (exec_command): Call user_access rather than setgid(getgid()).
  2428.  
  2429.     * misc.c (remove_comments): Renamed from collapse_line; took out
  2430.     collapse_continuations call.
  2431.     * make.h: Change decl.
  2432.     * read.c (read_makefile): Collapse continuations on the line buffer
  2433.     immediately after reading it.  Call remove_comments rather than
  2434.     collapse_line (which is now defunct).
  2435.  
  2436. Thu Feb 21 18:06:51 1991  Roland McGrath  (mcgrath at cygint.cygnus.com)
  2437.  
  2438.     * misc.c (user_access, make_access): New fns to toggle btwn permissions
  2439.     for user data (files and spawning children), and permissions for make
  2440.     (for taking the load average, mostly).
  2441.     * make.h: Declare them.
  2442.     * job.c (start_job): Call make_access before wait_to_start_job, and
  2443.     user_access after.
  2444.     * main.c (main): Call user_access before doing much.
  2445.  
  2446. Mon Feb  3 15:02:03 1991  Roland McGrath  (roland at albert.ai.mit.edu)
  2447.  
  2448.     * Version 3.59.2.
  2449.  
  2450. Tue Jan 29 20:30:50 1991  Roland McGrath  (roland at cygint.cygnus.com)
  2451.  
  2452.     * read.c (read_all_makefiles): Use allocated_variable_expand to expand
  2453.     `$(MAKEFILES)', since the results are used across calls to
  2454.     read_makefile, which could clobber them.
  2455.  
  2456. Wed Jan 23 00:24:10 1991  Roland McGrath  (roland at cygint.cygnus.com)
  2457.  
  2458.     * main.c (main): Call install_default_implicit_rules after reading
  2459.     makefiles, not before.
  2460.     * default.c (install_default_implicit_rules): If a suffix-rule file
  2461.     entry has cmds, don't give it any from default_suffix_rules.
  2462.  
  2463. Fri Jan 17 17:39:49 1991  Roland McGrath  (roland at albert.ai.mit.edu)
  2464.  
  2465.     * arscan.c: Added support for AIX archives.
  2466.  
  2467.     * remake.c: Don't include ar.h.
  2468.     * main.c: Removed unused atol decl.
  2469.     * arscan.c (ar_scan): Declare arg FUNCTION to return long int.
  2470.     * ar.c (ar_touch): Don't perror for an invalid archive.
  2471.     * make.h: Declare lseek as long int.
  2472.  
  2473.     * job.c [hpux]: Define getdtablesize a la USG.
  2474.  
  2475. Sun Jan 12 21:08:34 1991  Roland McGrath  (roland at albert.ai.mit.edu)
  2476.  
  2477.     * Version 3.59.1.
  2478.  
  2479. Fri Jan 10 03:48:08 1991  Roland McGrath  (roland at albert.ai.mit.edu)
  2480.  
  2481.     * job.c (search_path): Take new arg, place to put full pathname (rather
  2482.     than mallocing it).
  2483.     (exec_command): Pass it, using auto storage.
  2484.  
  2485.     * main.c (print_version): Updated copyright years.
  2486.  
  2487. Wed Jan  8 19:46:19 1991  Roland McGrath  (roland at albert.ai.mit.edu)
  2488.  
  2489.     * job.c [_POSIX_SOURCE]: Just #include <sys/wait.h>, and define macro
  2490.     WAIT_NOHANG in terms of waitpid.
  2491.     [!_POSIX_SOURCE && (HAVE_SYS_WAIT || !USG)]: Don't #include <signal.h>
  2492.     (make.h does).
  2493.     Define macro WAIT_NOHANG in terms of wait3.
  2494.     (child_handler): #ifdef on WAIT_NOHANG, not HAVE_SYS_WAIT || !USG.
  2495.     Use WAIT_NOHANG macro instead of wait3.
  2496.  
  2497.     * file.h (struct file.command_state): Remove unused elt.
  2498.  
  2499. Wed Dec 26 18:10:26 1990  Roland McGrath  (roland at albert.ai.mit.edu)
  2500.  
  2501.     * commands.c (set_file_variables): If FILE got its commands from
  2502.     .DEFAULT, make $< == $@ (4.3 BSD/POSIX.2d11 compat).
  2503.  
  2504. Mon Dec 24 17:36:27 1990  Roland McGrath  (roland at albert.ai.mit.edu)
  2505.  
  2506.     * default.c (default_variables): Rename 2nd LINK.s defn to LINK.S.
  2507.  
  2508. Fri Dec 14 15:05:25 1990  Roland McGrath  (roland at albert.ai.mit.edu)
  2509.  
  2510.     * vpath.c (selective_vpath_search): Check for makefile-mentioned before
  2511.     checking for actual existence.  The old order loses if the containing
  2512.     directory doesn't exist (but a rule might make it).
  2513.  
  2514.     * make.h [__GNUC__]: Don't #define alloca if already #define'd.
  2515.  
  2516.     * rule.c (convert_to_pattern): Don't look at the target constructed for
  2517.     the empty rule when making the null-suffix rule.  Construct it over
  2518.     again, since the former may have been freed already.
  2519.  
  2520. Thu Dec 13 17:21:03 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  2521.  
  2522.     * make.h [__GNU_LIBRARY__]: Include <unistd.h> to get random fn decls.
  2523.  
  2524. Wed Dec 12 17:12:59 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  2525.  
  2526.     * make.h, arscan.c, glob.c: Only include <memory.h> #ifdef USG.
  2527.  
  2528.     * variable.c (define_variable_in_set): Replace env_overrides check that
  2529.     wasn't really redundant (undoing Sep 28 change).  Add comment saying
  2530.     why this check is necessary.
  2531.  
  2532.     * job.c, main.c [DGUX]: Needs siglist like USG.
  2533.  
  2534. Mon Dec 11 01:19:29 1990  Roland McGrath  (roland at albert.ai.mit.edu)
  2535.  
  2536.     * default.c [M_XENIX]: For rules that are different for Xenix, use the
  2537.     generic Unix version #ifdef __GNUC__.
  2538.  
  2539.     * main.c [M_XENIX]: Use USGr3-style setvbuf call.
  2540.  
  2541.     * read.c (find_percent): Do backslash folding correctly, not leaving
  2542.     extra crud on the end of the string.
  2543.  
  2544. Sun Dec 10 21:48:36 1990  Roland McGrath  (roland at albert.ai.mit.edu)
  2545.  
  2546.     * job.c: Don't declare wait3 if it's #defined.
  2547.  
  2548.     * GNUmakefile, compatMakefile, make.texinfo: Change make-info
  2549.     to make.info.
  2550.  
  2551. Thu Dec  7 21:20:01 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  2552.  
  2553.     * make.h [STDC_HEADERS || __GNU_LIBRARY__ || _POSIX_SOURCE]: Use
  2554.     ANSI <string.h> and names for str/mem functions.
  2555.     Use <stdlib.h> to declare misc fns rather than explicit decls.
  2556.     [_POSIX_SOURCE]: Don't declare kill (<signal.h> will).
  2557.     Include <sys/types.h> before <signal.h> because some braindead
  2558.     nonconformant 1003.1 implementation needs it.
  2559.     * misc.c: Don't declare malloc, realloc.  Do it in make.h.
  2560.     * arscan.c, glob.c: Use sequence for string fns from make.h verbatim.
  2561.     * make.h (S_ISDIR, S_ISREG): Declare if necessary.
  2562.     * commands.c (delete_child_targets), job.c (search_path), read.c
  2563.     (construct_include_path): Use S_ISfoo(m) instead of
  2564.     (m & S_IFMT) == S_IFfoo.
  2565.     * dir.c, glob.c [_POSIX_SOURCE]: Use dirent.
  2566.  
  2567. Wed Nov 29 22:53:32 1990  Roland McGrath  (roland at geech.ai.mit.edu)
  2568.  
  2569.     * Version 3.59.
  2570.  
  2571. Tue Nov 28 16:00:04 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  2572.  
  2573.     * arscan.c (ar_name_equal) [APOLLO]: Don't do `.o' hacking.  On Apollos
  2574.     the full file name is elsewhere, and there is no length restriction (or
  2575.     so I'm told).
  2576.  
  2577. Thu Nov 23 17:33:11 1990  Roland McGrath  (roland at albert.ai.mit.edu)
  2578.  
  2579.     * load.c [hp300 && BSD] (LDAV_CVT): Define for this system.
  2580.  
  2581. Tue Nov 21 07:58:40 1990  Roland McGrath  (roland at albert.ai.mit.edu)
  2582.  
  2583.     * read.c (record_files): Fix trivial bug with deciding to free storage
  2584.     for a file name.
  2585.  
  2586. Thu Nov 16 06:21:38 1990  Roland McGrath  (roland at geech.ai.mit.edu)
  2587.  
  2588.     * compatMakefile ($(bindir)/make): Install it setgid kmem.
  2589.  
  2590. Thu Nov  1 16:12:55 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  2591.  
  2592.     * GNUmakefile (make-*.tar.Z): Use `h' option to tar (dereference
  2593.     symlinks), to grab texinfo.tex from wherever it lives.
  2594.  
  2595. Tue Oct 30 16:15:20 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  2596.  
  2597.     * Version 3.58.13.
  2598.  
  2599. Fri Oct 26 14:33:34 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  2600.  
  2601.     * GNUmakefile: make-*.tar.Z: Include texinfo.tex.
  2602.  
  2603. Tue Oct 23 19:34:33 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  2604.  
  2605.     * main.c (define_makeflags): When there are no flags to write, make
  2606.     sure the array has two leading nulls, since `MAKEFLAGS' is defined from
  2607.     &flags[1].
  2608.  
  2609.     * main.c (default_keep_going_flag): New variable (constant one).
  2610.     (command_switches: -k, -S): Use above for default value.
  2611.     (define_makeflags): Only write flag/flag_off switches if they are on,
  2612.     and either there is no default value, or they are not the default.
  2613.  
  2614. Mon Oct 22 16:14:44 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  2615.  
  2616.     * main.c (struct command_switch): New member `no_makefile'.
  2617.     (command_switches: -n, -q, -t): Set no_makefile == 1.
  2618.     (define_makeflags): Take new arg MAKEFILE: if nonzero, don't use
  2619.     options whose `no_makefile' flags are set.
  2620.     (main): Call define_makeflags with MAKEFILE==1 before remaking
  2621.     makefiles, and again with MAKEFILE==0 before remaking goals.
  2622.  
  2623. Tue Oct  2 17:16:45 1990  Roland McGrath  (roland at geech.ai.mit.edu)
  2624.  
  2625.     * Version 3.58.12.
  2626.  
  2627. Mon Oct  1 15:43:23 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  2628.  
  2629.     * arscan.c [HPUX]: Use PORTAR==1 format.
  2630.  
  2631. Sat Sep 29 16:38:05 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  2632.  
  2633.     * make.h, remake.c, arscan.c: Don't declare `open'.
  2634.  
  2635. Fri Sep 28 04:46:23 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  2636.  
  2637.     * variable.c (define_variable_in_set): Remove redundant -e check.
  2638.  
  2639. Wed Sep 26 00:28:59 1990  Roland McGrath  (roland at geech.ai.mit.edu)
  2640.  
  2641.     * job.c (start_job): Set RECURSIVE from the right elt of
  2642.     CHILD->file->cmds->lines_recurse.
  2643.  
  2644.     * commands.c (chop_commands): Don't botch the line count for allocating
  2645.     CMDS->lines_recurse.
  2646.  
  2647.     * Version 3.58.11.
  2648.  
  2649.     * job.c (start_job): Don't always increment CHILD->command_line!  Only
  2650.     do it when CHILD->command_ptr has run out!  (Dumb bug.  Sigh.)
  2651.  
  2652. Thu Sep 20 02:18:51 1990  Roland McGrath  (roland at geech.ai.mit.edu)
  2653.  
  2654.     * GNUmakefile [ARCH]: Give explicit rule for remote.{c,dep} to use
  2655.     variable `REMOTE' for more flags.
  2656.     ($(prog)): Link in $(LOADLIBES).
  2657.  
  2658. Wed Sep 19 02:30:36 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  2659.  
  2660.     * commands.h (struct commands): New member `ncommand_lines', the number
  2661.     of elts in `command_lines' et al.
  2662.     * commands.c (chop_commands): Set `ncommand_lines' elt of CMDS, and
  2663.     don't put a nil pointer at the end of `command_lines'.
  2664.     * job.h (struct child): New member `command_lines' to hold
  2665.     variable-expanded command lines.
  2666.     * job.c (new_job): Store expanded command lines in `command_lines'
  2667.     member of new child.  Don't clobber FILE->cmds.
  2668.     (start_job): Use CHILD->command_lines in place of
  2669.     CHILD->file->cmds->command_lines.
  2670.  
  2671.     * variable.h, variable.c, job.c, expand.c: Undo yesterday's change,
  2672.     which is no longer necessary since we have cleverly avoided the issue.
  2673.  
  2674.     * job.c (start_job): Don't variable-expand each command line.
  2675.     (new_job): Do them all here, storing the expansions in the array.
  2676.  
  2677. Tue Sep 18 01:23:13 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  2678.  
  2679.     * variable.h (struct variable): Remove `expanding' member.
  2680.     * variable.c (define_variable_in_set): Don't initialize it.
  2681.     * expand.c (struct variable_expanding): New type, a linked list
  2682.     containing `struct variable' pointers.
  2683.     (variables_expanding): New variable, the chain of variables currently
  2684.     being expanded.
  2685.     (recursively_expand): Don't test and set `expanding' member.
  2686.     Instead, run through the `variables_expanding' chain looking for a link
  2687.     referring to V to find self-reference.  Add a new link to the chain,
  2688.     describing V, before recursive expansion, and pop it off afterward.
  2689.     * job.c (child_handler): Save `variables_expanding' and clear it before
  2690.     calling start_job, and restore it afterward.  This avoids major lossage
  2691.     when the SIGCHLD comes in the middle of variable expansion.
  2692.  
  2693. Mon Sep 17 14:46:26 1990  Roland McGrath  (roland at geech.ai.mit.edu)
  2694.  
  2695.     * job.c, commands.c: Don't define sigmask.
  2696.     * make.h: Put it here instead.
  2697.  
  2698.     * variable.c (target_environment): If `.NOEXPORT' was specified as a
  2699.     target, only export command-line and environment variables, and
  2700.     file-origin variables that were in the original environment.
  2701.  
  2702.     * make.man: Add missing ?roff control for `-I' option description.
  2703.  
  2704. Thu Sep 13 14:10:02 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  2705.  
  2706.     * load.c [UMAX]: Move #include <sys/sysdefs.h> to [not UMAX_43].
  2707.  
  2708. Wed Sep 12 15:10:15 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  2709.  
  2710.     * expand.c (recursively_expand): Don't use `reading_filename' and
  2711.     `reading_lineno_ptr' if they're nil.
  2712.  
  2713. Thu Aug 30 17:32:50 1990  Roland McGrath  (roland at geech)
  2714.  
  2715.     * Version 3.58.10.
  2716.  
  2717. Tue Aug 28 04:06:29 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  2718.  
  2719.     * job.c [USG] (unknown_children_possible): New variable, set nonzero
  2720.     when it's possible for children not in the `children' chain to die.
  2721.     (block_signals) [USG]: Set it.
  2722.     (unblock_signals) [USG]: Clear it.
  2723.     (child_handler) [USG]: Don't complain about unknown children if
  2724.     `unknown_children_possible' is set.
  2725.  
  2726.     * read.c (do_define): Make sure there's enough space for the newline,
  2727.     so we don't write off the end of allocated space.
  2728.  
  2729.     * arscan.c (ar_name_equal): Fixed to work when MEM is AR_NAMELEN-1 but
  2730.     NAME is not the same length.
  2731.  
  2732. Sat Aug 25 16:17:14 1990  Roland McGrath  (roland at geech)
  2733.  
  2734.     * job.c (construct_command_argv_internal): Use a static char array for
  2735.     a constant, since old C has no auto aggregate initializers.
  2736.  
  2737. Thu Aug 23 16:11:03 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  2738.  
  2739.     * job.c (search_path): If PATH is nil or "" use a default path.
  2740.  
  2741. Wed Aug 22 01:05:32 1990  Roland McGrath  (roland at churchy.ai.mit.edu)
  2742.  
  2743.     * Version 3.58.9.
  2744.  
  2745.     * job.c (exec_command): Don't take PATH and SHELL args.  Get them from
  2746.     ENVP.
  2747.     (child_execute_job): Don't take FILE arg, and don't pass path and shell
  2748.     to exec_command.
  2749.     (start_job): Don't pass FILE arg to child_execute_job.
  2750.     * function.c (expand_function: `shell'): Ditto.
  2751.     * main.c (main): Don't pass path and shell to exec_command.
  2752.  
  2753. Fri Aug 17 23:17:27 1990  Roland McGrath  (roland at geech)
  2754.  
  2755.     * job.c (construct_command_argv_internal): New fn broken out of
  2756.     construct_command_argv.  Takes strings SHELL and IFS instead of doing
  2757.     variable expansion for them.  Recurse to make an argv for SHELL,
  2758.     passing SHELL==0.  When SHELL==0, don't recurse for shell argv; make a
  2759.     simple one using /bin/sh.
  2760.     (construct_command_argv): Do the variable expansions and call above.
  2761.  
  2762. Thu Aug 16 19:03:14 1990  Roland McGrath  (roland at geech)
  2763.  
  2764.     * read.c (multi_glob): For ~USER/FILE, if USER isn't found, don't
  2765.     change the file name at all.
  2766.  
  2767. Tue Aug  7 18:33:28 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  2768.  
  2769.     * function.c (expand_function: `suffix'/`notdir'): Don't kill the last
  2770.     space if we never wrote one.
  2771.  
  2772.     * function.c (expand_function: `suffix'): Retain the dot, like the
  2773.     documentation says.
  2774.  
  2775. Mon Aug  6 14:35:06 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2776.  
  2777.     * Version 3.58.8.
  2778.  
  2779.     * main.c (decode_switches): For positive_int and floating cases, move
  2780.     SW past the arg (and don't set it to ""), so another switch can follow.
  2781.  
  2782. Fri Aug  3 00:43:15 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2783.  
  2784.     * job.c (child_execute_job): Use unblock_signals instead of
  2785.     push_signals_blocked_p (0).
  2786.  
  2787.     * main.c (fatal_signal_mask): New variable, mask of signals caught with
  2788.     fatal_error_signal.
  2789.     (main): Set it.
  2790.     * job.c ({block,unblock}_children): Renamed to {block,unblock}_signals.
  2791.     Block/unblock both child signal and signals in fatal_signal_mask.
  2792.     (children_blocked_p_{stack,max,depth}, {push,pop}_children_blocked_p):
  2793.     Renamed from children to signals.  Use {block,unblock}_signals instead
  2794.     of {block,unblock}_children.
  2795.     * commands.c (fatal_error_signal), job.c (wait_for_children, new_job,
  2796.     child_execute_job, main, log_working_directory), function.c
  2797.     (expand_function: `shell'), job.h: Rename {push,pop}_children_blocked_p
  2798.     to {push,pop}_signals_blocked_p.
  2799.     * job.c (child_handler): Call {block,unblock}_signals instead of just
  2800.     {block,unblock}_remote_children.  We need to block the fatal signals.
  2801.  
  2802. Thu Aug  2 22:41:06 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2803.  
  2804.     * main.c, function.c: Fixed typos in comments.
  2805.  
  2806.     * file.c (print_file_data_base): Fix computation of avg files/bucket.
  2807.  
  2808. Tue Jul 31 22:11:14 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2809.  
  2810.     * Version 3.58.7.
  2811.  
  2812. Wed Jul 25 16:32:38 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  2813.  
  2814.     * arscan.c (ar_name_equal): Fixed to really do it right.
  2815.     (ar_member_pos): Fixed order of args.
  2816.     * ar.c (ar_member_date_1): Ditto.
  2817.  
  2818. Fri Jul 20 15:30:26 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  2819.  
  2820.     * arscan.c (ar_name_equal): Rewritten.  Accounts for a possible
  2821.     trailing slash in MEM.
  2822.  
  2823.     * remake.c (f_mtime): Keep track of whether ARNAME is used and free it
  2824.     if not.  Also free MEMNAME.
  2825.     * ar.c (ar_member_date, ar_touch): Ditto.
  2826.  
  2827.     * arscan.c (arscan) [HPUX or hpux]: Treat same as USGr3 PORTAR==1.
  2828.  
  2829.     * make.h: If NSIG is not defined, but _NSIG is, #define NSIG _NSIG.
  2830.  
  2831.     * compatMakefile: Don't use $* in explicit rules.
  2832.  
  2833.     * default.c (default_variables: "PREPROCESS.S"): Include $(CPPFLAGS).
  2834.  
  2835.     * remake.c (f_mtime): If FILE is an ar ref, get the member modtime.
  2836.  
  2837.     * function.c (string_glob): Terminate the string properly when it's
  2838.     empty.
  2839.  
  2840. Wed Jul 18 11:26:56 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2841.  
  2842.     * Version 3.58.6.
  2843.  
  2844.     * commands.c (set_file_variables): Fixed computation for ^F/?F elt len.
  2845.  
  2846. Sat Jul 14 13:41:24 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2847.  
  2848.     * job.c (construct_command_argv): Always use
  2849.     allocated_variable_expand_for_file instead of variable_expand_for_file
  2850.     because we might be called from inside a variable expansion (for the
  2851.     `shell' function).
  2852.  
  2853.     * function.c (expand_function: `shell'): Free the arglist's storage
  2854.     correctly.  construct_command_argv only allocates ARGV and ARGV[0].
  2855.  
  2856.     * job.c (children_blocked_p_idx): Renamed to children_blocked_p_depth.
  2857.     (push_children_blocked_p, pop_children_blocked_p): Use ..._depth
  2858.     instead of ..._idx, and do it right!
  2859.  
  2860. Wed Jul 11 15:35:43 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2861.  
  2862.     * make.h (SIGNAL): New macro to replace `signal' calls.  Does arg and
  2863.     ret value casts to (void *) #ifdef __STDC__ to avoid conflicts btwn
  2864.     ANSI and BSD `signal' and handler types.
  2865.     * main.c (main), job.c (child_handler): Use it.
  2866.  
  2867. Fri Jul  6 00:00:38 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  2868.  
  2869.     * ar.c (ar_member_date, ar_touch): Pass 2nd arg to f_mtime.
  2870.  
  2871.     * read.c (read_makefile): Search the include path for MAKEFILES
  2872.     variable makefiles (TYPE == 1), like it says in the manual.
  2873.  
  2874.     * file.h (struct file), main.c (struct command_switch): Remove trailing
  2875.     commas from enums.
  2876.  
  2877.     * commands.c (execute_file_commands): Remove unused variables.
  2878.     * commands.h: Declare chop_commands.
  2879.     * make.h: Declare uniquize_deps.
  2880.     * main.c (main): Remove unused variable.
  2881.     (decode_switches): Remove unused label.
  2882.     * remake.c: Include "ar.h" for ar_parse_name decl.
  2883.     * implicit.c (try_implicit_rule): Remove unused variable.
  2884.     * function.c (expand_function: `shell'): Declare fork, pipe.
  2885.     * ar.c: Declare ar_name_equal.
  2886.  
  2887.     * GNUmakefile: If using gcc, add warning flags to CFLAGS.
  2888.  
  2889.     * remake.c: Remove decl of ar_member_date, since it's done in make.h.
  2890.  
  2891.     * remake.c (f_mtime): For ar refs, allow the archive to be found via
  2892.     VPATH search if we're searching, and change the ar ref accordingly.
  2893.  
  2894.     * ar.c (ar_parse_name): New global fn to parse archive-member
  2895.     references into the archive and member names.
  2896.     (ar_member_date, ar_touch): Use it.
  2897.     * make.h: Declare it.
  2898.  
  2899.     * remake.c (f_mtime): After doing rename_file, do check_renamed instead
  2900.     of assuming rename_file will always set FILE->renamed (which it won't).
  2901.  
  2902.     * vpath.c (selective_vpath_search): Only accept prospective files that
  2903.     don't actually exist yet are mentioned in a makefile if the file we are
  2904.     searching for isn't a target.
  2905.  
  2906. Wed Jul  4 04:11:55 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  2907.  
  2908.     * remake.c (update_goal_chain): Do check_renamed after calling
  2909.     file_mtime.
  2910.     (check_dep): Ditto after update_file.
  2911.  
  2912.     * file.c (rename_file): Prettied up long message for merging cmds.
  2913.  
  2914.     * remake.c (update_file_1): Get each dep file's modtime, and allow for
  2915.     it being renamed, before checking for a circular dep, since a renaming
  2916.     may have introduced one.
  2917.  
  2918. Tue Jul  3 18:15:01 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  2919.  
  2920.     * ar.c (ar_touch): Don't free ARNAME since enter_file holds onto the
  2921.     storage.
  2922.  
  2923.     * function.c (string_glob): Don't leave a trailing space.
  2924.  
  2925.     * read.c (do_define): Allow leading whitespace before `endef'.
  2926.  
  2927. Mon Jul  2 14:10:16 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  2928.  
  2929.     * implicit.c (pattern_search): No longer take NAME arg.  Instead take
  2930.     ARCHIVE flag.  If ARCHIVE is nonzero, FILE->name is of the form
  2931.     "LIB(MEMBER)"; rule for "(MEMBER)" is searched for, and LASTSLASH is
  2932.     set to nil.  Since NAME was only non-nil when it was the archive member
  2933.     name passed by try_implicit_rule, this change easily allows turning off
  2934.     LASTSLASH checking for archive members without excessive kludgery.
  2935.     (try_implicit_rule): Pass ARCHIVE flag instead of file name.
  2936.  
  2937.     * Version 3.58.5.
  2938.  
  2939.     * commands./c (set_file_variables): Don't kill last char of $(^D) elts.
  2940.  
  2941. Sat Jun 30 00:53:38 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  2942.  
  2943.     * ar.c (ar_member_date): Don't free ARNAME since enter_file holds onto
  2944.     the storage.
  2945.  
  2946.     * arscan.c (ar_scan) [sun386 && PORTAR == 1]: Treat like USGr3.
  2947.  
  2948. Wed Jun 27 14:38:49 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2949.  
  2950.     * main.c (main): Put a newline on the debugging message when deciding
  2951.     not to remake a makefile to avoid a possible loop.
  2952.     Only decide not to remake makefiles that have commands (as well as
  2953.     being targets and having no deps).
  2954.  
  2955. Fri Jun 22 12:35:37 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2956.  
  2957.     * default.c (default_variables): Define `LINK.s' and `LINK.S'.
  2958.     (default_suffix_rules): Define .S.o rule.
  2959.  
  2960.     * job.c (construct_command_argv): If we decide to go the slow route,
  2961.     free all storage for the chopped args.
  2962.     (start_job): Free the argument list's storage correctly.
  2963.     construct_command_argv only allocates ARGV and ARGV[0].
  2964.  
  2965. Tue Jun 19 18:27:43 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2966.  
  2967.     * Version 3.58.4.
  2968.  
  2969. Fri Jun 15 21:12:10 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2970.  
  2971.     * glob.c: New version from ai-lab which doesn't do [^abc].
  2972.  
  2973. Thu Jun  7 00:30:46 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2974.  
  2975.     * dir.c: Copied dirent vs direct et al mess from glob.c.
  2976.  
  2977.     * glob.c: Replaced with updated version from djm.
  2978.     * glob.c: Check macro DIRENT instead of _POSIX_SOURCE for <dirent.h>.
  2979.     __GNU_LIBRARY__ implies DIRENT and STDC_HEADERS.
  2980.  
  2981. Thu May 31 22:19:49 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  2982.  
  2983.     * vpath.c (vpath_search): Don't stop the loop if a pattern matches but
  2984.     the search fails.  All matching patterns have their paths searched
  2985.     (like it says in the manual).
  2986.  
  2987.     * make.texinfo (Rules: Directory Search: Selective Search): Say that
  2988.     multiple `vpath' directives with the same pattern DO accumulate, not
  2989.     supersede earlier ones.
  2990.  
  2991.     * vpath.c (print_vpath_data_base): Increment the count of vpaths on
  2992.     each loop iteration, rather than letting it stay zero.
  2993.  
  2994.     * Version 3.58.3.
  2995.  
  2996.     * job.c (block_children, unblock_children): Made static.
  2997.     (push_children_blocked_p, pop_children_blocked_p): New functions to
  2998.     push and pop whether children are blocked or not.
  2999.     * job.h: Declare push_children_blocked_p, pop_children_blocked_p and
  3000.     not block_children, unblock_children.
  3001.     * commands.c (fatal_error_signal), job.c (wait_for_children, new_job,
  3002.     child_execute_job), main.c (main, log_working_directory): Use sequences
  3003.     of push_children_blocked_p (1) and pop_children_blocked_p () instead of
  3004.     explicitly blocking and unblocking children.
  3005.     * function.c (expand_function: `shell'): Don't unblock children.  The
  3006.     push-pop sequence in wait_for_children makes it unnecessary.
  3007.  
  3008. Tue May 29 21:30:00 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  3009.  
  3010.     * read.c (do_define): Don't include the last newline in the definition.
  3011.  
  3012.     * function.c (expand_function: `shell'): Call construct_command_argv
  3013.     before forking and don't fork if it returns nil.  Free the argument
  3014.     list's storage before finishing.
  3015.  
  3016.     * job.c (start_job): Free the storage for the child's argument list
  3017.     in the parent side of the fork after the child has been spawned.
  3018.  
  3019.     * job.c (start_job): If construct_command_argv returns nil, go to the
  3020.     next command line.
  3021.  
  3022.     * job.c (construct_command_argv): Use the shell if the command contains
  3023.     an unterminated quote.
  3024.  
  3025. Wed May 23 19:54:10 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3026.  
  3027.     * Version 3.58.2.
  3028.  
  3029.     * read.c (read_makefile): Parse "override define" correctly.
  3030.  
  3031. Thu May 17 15:25:58 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3032.  
  3033.     * arscan.c [USG]: Don't declare memcpy and memcmp.  <memory.h> should
  3034.     do this anyway (and lack of declarations is harmless).
  3035.  
  3036.     * remote-customs.c: Renamed to remote-cstms.c for System V.
  3037.     * remote.c [CUSTOMS]: Changed accordingly.
  3038.  
  3039. Sun May 13 14:38:39 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3040.  
  3041.     * GNUmakefile: Use same cmds for doc tar.Z as for dist tar.Z (so the
  3042.     contents go in make-N.NN).
  3043.  
  3044. Thu Apr 26 19:33:25 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3045.  
  3046.     * Version 3.58.1.
  3047.  
  3048. Wed Apr 25 20:27:52 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3049.  
  3050.     * job.c (init_siglist): Don't do SIGUSR1 and SIGUSR2 if they are the
  3051.     same as SIGIO and SIGURG (true on Cray).
  3052.  
  3053. Tue Apr 24 20:26:41 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3054.  
  3055.     * arscan.c (ar_scan): Do behavior for PORTAR == 1 and USGr3 also
  3056.     #ifdef APOLLO.
  3057.  
  3058. Wed Apr 11 10:00:39 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3059.  
  3060.     * job.c (exec_command): Set the effective GID to the real GID.  Somehow
  3061.     this code got lost.
  3062.  
  3063.     * implicit.c (pattern_search): Use the right index variable when
  3064.     seeing if we need to expand FILE->also_make.
  3065.  
  3066. Sun Mar  4 09:18:58 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3067.  
  3068.     * Version 3.58.0.
  3069.  
  3070.     * remake.c (remake_file): Treat non-targets without commands under -t
  3071.     the same as anything else without commands.
  3072.  
  3073. Sat Feb 24 17:46:04 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3074.  
  3075.     * default.c (default_variables: PREPROCESS.S): Removed $< from defn.
  3076.  
  3077.     * main.c (main): Ignore arguments that are the empty string, rather
  3078.     than feeding them to enter_file and barfing therein.
  3079.  
  3080. Wed Feb 14 16:28:37 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3081.  
  3082.     * main.c (main): Call construct_include_path after doing chdirs.
  3083.  
  3084. Thu Feb  8 13:43:44 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3085.  
  3086.     * Version 3.58.
  3087.  
  3088. Sat Feb  3 22:06:55 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3089.  
  3090.     * Version 3.57.7.
  3091.  
  3092.     * make.texinfo (Implicit: Catalogue of Rules): For RCS, noted that
  3093.     working files are never overwritten by the default rule.
  3094.  
  3095. Thu Feb  1 17:27:54 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3096.  
  3097.     * rule.c (count_implicit_rule_limits): Redid loop control to not run
  3098.     twice on freed rules.
  3099.  
  3100.     * GNUmakefile: Made `.dep' files be architecture-specific too.
  3101.  
  3102.     * main.c (main, log_working_directory) [USG]: Block children around
  3103.     calls to `getwd' (actually `getcwd' on USG), because that function
  3104.     sometimes spawns a child running /bin/pwd on USG.
  3105.  
  3106. Tue Jan 30 14:02:50 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3107.  
  3108.     * function.c (subst_expand): Pay attention to SUFFIX_ONLY, putz.
  3109.  
  3110. Wed Jan 24 21:03:29 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3111.  
  3112.     * make.man: Fixed repeated word.
  3113.  
  3114.     * make.texinfo (Missing): Reworded a buggy sentence.
  3115.  
  3116. Mon Jan 22 12:39:22 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3117.  
  3118.     * main.c (print_version): Added 1990 to copyright notice.
  3119.  
  3120.     * Version 3.57.6.
  3121.  
  3122. Sat Jan 20 11:52:01 1990  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3123.  
  3124.     * file.c (rename_file): Don't free the storage for the old name, since
  3125.     it might not have been malloc'd.
  3126.  
  3127.     * job.c (construct_command_argv): Call
  3128.     allocated_variable_expand_for_file instead of variable_expand_for_file
  3129.     to expand `$(SHELL)'.
  3130.  
  3131.     * make.texinfo (Bugs): Change address from roland@wheaties.ai.mit.edu
  3132.     to roland@prep.ai.mit.edu.
  3133.  
  3134. Tue Jan 16 19:22:33 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3135.  
  3136.     * Version 3.57.5.
  3137.  
  3138. Sun Jan 14 16:48:01 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  3139.  
  3140.     * job.c (start_job): Only call wait_to_start_job for the first command
  3141.     line in each sequence.
  3142.  
  3143. Thu Jan  4 14:27:20 1990  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  3144.  
  3145.     * load.c [LDAV_BASED] (wait_to_start_job): Loop while job_slots_used >
  3146.     0, not > 1.
  3147.  
  3148.     * job.c (search_path): Don't return a pointer to local storage.
  3149.     Allocate data space for the pathname instead.
  3150.  
  3151.     * function.c (expand_function: `shell'): Don't write garbage if the
  3152.     child wrote no output.
  3153.  
  3154. Wed Jan  3 15:28:30 1990  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3155.  
  3156.     * Version 3.57.4.
  3157.  
  3158.     * file.h (struct file): New member `renamed', a `struct file *' that is
  3159.     the place this file has been renamed to (or nil).
  3160.     (check_renamed): Macro to check for a file having been renamed.
  3161.     Dereferences the renaming and sets the given variable.
  3162.     * file.c (rename_file): Completely rewritten.  Renames in place if
  3163.     possible, or moves FILE to a different hash bucket if there is no
  3164.     existing file with the new name.  If there is an existing file with the
  3165.     new name, FILE is merged into it and FILE->renamed is set to point to
  3166.     it.
  3167.     * variable.c (merge_variable_sets): New fn to merge two variable sets.
  3168.     (merge_variable_set_lists): New fn to merge two variable set lists.
  3169.     * variable.h: Declare merge_variable_set_lists.
  3170.     * remake.c (update_file_1, check_dep): Run `check_renamed' after
  3171.     calling file_mtime, check_dep.
  3172.     (update_file): Same after update_file_1.
  3173.     (update_goal_chain, update_file_1, check_dep): Same after update_file.
  3174.  
  3175.     * read.c (uniquize_deps): New fn, broken out of record_files, to remove
  3176.     duplicate deps from a chain.
  3177.     (record_files): Use it.
  3178.     * implicit.c (pattern_search): Use uniquize_deps.
  3179.  
  3180.     * file.h (file_mtime_1): New macro, like file_mtime, but take second
  3181.     arg, passed to f_mtime.
  3182.     (file_mtime): Implement as file_mtime_1 (file, 1).
  3183.     (file_mtime_no_search): New macro: file_mtime (file, 0).
  3184.     * remake.c (f_mtime): Take new arg SEARCH.  Only do VPATH and `-lNAME'
  3185.     searching if it is nonzero.
  3186.     * main.c (main): Use file_mtime_no_search for makefiles.
  3187.     * remake.c (update_goal_chain): Use file_mtime_no_search if MAKEFILES.
  3188.  
  3189.     * main.c (printed_version): New variable, init'd to zero.
  3190.     (print_version): Set it to nonzero before returning.
  3191.     (die): If -v and !printed_version, call print_version before clean up
  3192.     and death.
  3193.  
  3194.     * main.c (log_working_directory): Keep track of whether or not the
  3195.     "Entering" message has been printed, and return without printing the
  3196.     "Leaving" message if not.
  3197.  
  3198.     * main.c (decode_switches): Don't complain about missing args before
  3199.     checking for a noarg_value elt in the command_switch structure.
  3200.  
  3201. Tue Jan  2 15:41:08 1990  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3202.  
  3203.     * make.texinfo (Commands: Recursion: Options/Recursion): Document
  3204.     special case of -j.
  3205.  
  3206.     * make.texinfo, main.c, job.c: Changed copyright notices to include
  3207.     1990.
  3208.  
  3209.     * make.texinfo (Top): Fixed introductory paragraph, which said that
  3210.     `make' itself (instead of the manual) has various chapters.
  3211.     (Variables: Advanced: Substitution Refs): When pxref'ing about
  3212.     `patsubst', use node `Text Functions', not `Functions'.
  3213.     Add an xref about `patsubst' after description of $(var:a%b=c%d).
  3214.     (Functions: Syntax of Functions): Explain why mixing delimiters in
  3215.     function/var refs is unwise.  Clarify fn arg evaluation order.
  3216.     (Options): Reworded sentence about `-e'.
  3217.     (Implicit: Implicit Variables): Don't say `RM' is unused.
  3218.     Say the dflt values for the flag vars is empty unless otherwise noted,
  3219.     since some have defaults.
  3220.     (Implicit: Pattern Rules: Pattern Examples): Clarified use of $< and $@
  3221.     in first example.
  3222.     (Implicit: Last Resort): Don't say the .DEFAULT example creates files
  3223.     "silently".  It's automatic, but not silent.
  3224.     (Implicit: Search Algorithm): Fixed confusing ungrammatical sentence
  3225.     for item 5.1.
  3226.     (Archives: Archive Update): Added missing `next' pointer.
  3227.     (Archives: Archive Symbols): Note that GNU `ar' deals with this
  3228.     automatically.
  3229.  
  3230.     * job.c (search_path): New fn, to search for an executable file in a
  3231.     search path (broken out of exec_command).
  3232.     (exec_command): Take fourth arg, the shell program to use (if
  3233.     necessary).  Use search_path for the program, and the shell program.
  3234.     Pass args "file args ..." to shell program (with no -c), where FILE is
  3235.     the full pathname of the program (script) to be run.
  3236.     (child_execute_job): Pass shell program to exec_command.
  3237.     * main.c (main): Ditto.
  3238.  
  3239.     * main.c (main): Don't write a message if exec_command returns, because
  3240.     it will never return.
  3241.  
  3242. Fri Dec 22 16:19:58 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  3243.  
  3244.     * default.c (default_variables: "LINK.cc"): Use $(C++FLAGS) instead of
  3245.     $(CFLAGS).
  3246.  
  3247. Wed Dec 20 09:58:48 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  3248.  
  3249.     * job.c (new_job): If start_job set the child's `command_state' to
  3250.     `cs_finished', call notice_finished_file.
  3251.  
  3252. Sun Dec 17 19:45:41 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  3253.  
  3254.     * Version 3.57.3.
  3255.  
  3256. Wed Dec 13 17:57:12 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3257.  
  3258.     * rule.c (convert_to_pattern): Accept files with dependencies as
  3259.     suffix rules.
  3260.  
  3261. Thu Nov 30 15:47:13 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  3262.  
  3263.     * Version 3.57.2.
  3264.  
  3265.     * function.c (expand_function: `shell'): Don't clobber BUFFER and then
  3266.     try to free it.
  3267.  
  3268.     * remake.c (update_file_1): Took code to force remake of nonexistent
  3269.     deps out of #if 0, and changed the test to nonexistent non-intermediate
  3270.     deps.  In version 4, I think removing this test completely will
  3271.     implement the new feature that if a: b and b: c and c is newer than a,
  3272.     b need not be remade.
  3273.  
  3274. Sun Nov 26 16:12:41 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3275.  
  3276.     * compatMakefile (load.o, remote.o): Use $*.c instead of explicit file
  3277.     names so that using VPATH works.
  3278.  
  3279. Tue Nov 21 14:57:18 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3280.  
  3281.     * Version 3.57.1.
  3282.  
  3283. Fri Nov 10 03:28:40 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3284.  
  3285.     * remake.c (check_dep): Set *MUST_MAKE_PTR if FILE does not exist after
  3286.     being updated.  (The exact opposite test was here before; why???)
  3287.     (update_file_1): Set a dep's `changed' member after updating it if it
  3288.     is phony and has commands (because they will then always be executed).
  3289.  
  3290. Thu Nov  9 13:47:12 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3291.  
  3292.     * load.c [UMAX]: #ifdef UMAX_43 include different headers for the
  3293.     `inq_stats' call.
  3294.     * compatMakefile (LOAD_AVG): Document UMAX_43.
  3295.  
  3296.     * Version 3.57.0.
  3297.  
  3298.     * commands.c (chop_commands): New function to chop commands into lines.
  3299.     * job.c (new_job): Break that code out, and call chop_commands.
  3300.     * remake.c (remake_file): Call chop_commands before looking at
  3301.     FILE->cmds->any_recurse.
  3302.  
  3303.     * make.texinfo (Running: Goals): Don't say that the default target
  3304.     won't be taken from an included makefile.
  3305.  
  3306.     * remake.c (update_file_1): #if 0 out setting MUST_MAKE if a dep
  3307.     doesn't exist.
  3308.  
  3309. Fri Nov  3 15:53:03 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  3310.  
  3311.     * Version 3.57.
  3312.  
  3313.     * variable.c (try_variable_definition): Don't calculate useless value.
  3314.  
  3315.     * main.c (define_makeflags): Fixed -j propagation.
  3316.  
  3317.     * commands.c (execute_file_commands): Removed unused variable.
  3318.  
  3319. Sun Oct 29 11:11:15 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3320.  
  3321.     * commands.c (execute_file_commands): If the commands are empty, call
  3322.     notice_finished_file before returning.
  3323.  
  3324. Sat Oct 28 23:06:32 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3325.  
  3326.     * remake.c (update_file_1): Don't always update a target that has no
  3327.     deps.  Only do this for double-colon targets.
  3328.  
  3329. Wed Oct 25 16:36:16 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3330.  
  3331.     * main.c (main) [hpux]: hpux == HPUX.
  3332.     * compatMakefile (defines): Document that HPUX should be defined.
  3333.  
  3334. Tue Oct 24 19:19:48 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3335.  
  3336.     * Version 3.56.8.
  3337.  
  3338.     * job.c (exec_command): Fixed what mode bits are checked.
  3339.  
  3340.     * remake.c (update_file_1): "No cmds and no deps actually changed"
  3341.     loses if ! FILE->is_target.
  3342.  
  3343.     * make.texinfo (Variables: Setting): Don't say that spaces after a
  3344.     variable definition are ignored (since they aren't).
  3345.  
  3346. Mon Oct 23 14:34:23 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3347.  
  3348.     * Version 3.56.7.
  3349.  
  3350.     * remake.c (update_file_1): If, after being updated, any dependency
  3351.     does not exist, remake the target.
  3352.  
  3353.     * remake.c (update_file_1): Always update if FILE has commands but no
  3354.     deps.
  3355.  
  3356.     * commands.c (execute_file_commands): If we return early because there
  3357.     are no commands, set FILE->updated.
  3358.  
  3359. Thu Oct 19 18:47:37 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3360.  
  3361.     * arscan.c (ar_scan) [M_XENIX]: Don't run atoi or atol on the
  3362.     `struct ar_hdr' members that are int or long int on Xenix.
  3363.  
  3364. Sat Oct 14 10:43:03 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3365.  
  3366.     * arscan.c (ar_scan): Cosmetic clean ups.
  3367.     (ar_name_equal): New function to compare names, handling truncated
  3368.     member names and special `.o' truncation.
  3369.     (ar_member_pos): Use ar_name_equal.
  3370.     * ar.c (ar_member_date_1): Use ar_name_equal.
  3371.  
  3372.     * Version 3.56.6.
  3373.  
  3374.     * file.h (struct file): Made `update_status' a `short int', and moved
  3375.     it before `command_state' so the bitfields can be packed better.
  3376.  
  3377.     * remake.c (files_remade): Made global.
  3378.     (notice_finished_file): Don't increment files_remade.
  3379.     * job.c (new_job): Do.
  3380.  
  3381.     * job.c (start_job): Don't return a value.  Always set
  3382.     CHILD->file->command_state to either cs_running or cs_finished.
  3383.     (new_job, child_handler): Don't expect start_job to return a value.
  3384.     Instead, look at the file's command_state.
  3385.  
  3386.     * commands.c (chop_commands): Merged into job.c (new_job).
  3387.     * commands.h: Don't declare chop_commands.
  3388.  
  3389.     * job.c (start_job): Made static.
  3390.     (new_job): New function to create a `struct child' and call start_job.
  3391.     (free_child): New function to free a `struct child'.
  3392.     (child_handler, new_job): Call it.
  3393.     * job.h: Don't declare start_job.  Do declare new_job.
  3394.     * commands.c (execute_file_commands): Call new_job.
  3395.  
  3396.     * commands.c (execute_file_commands): Don't set FILE->update_status if
  3397.     start_job fails.
  3398.  
  3399.     * function.c (expand_function): Don't use `reading_filename' and
  3400.     `reading_lineno_ptr' if they're nil.
  3401.  
  3402. Fri Oct 13 18:16:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3403.  
  3404.     * read.c (find_semicolon): New function to look for an unquoted ; not
  3405.     preceded by an unquoted # in a string.
  3406.     (read_makefile): Call it before expanding the line.  If it finds a ;,
  3407.     cut the line short there before expanding it.  If not, call it again
  3408.     after expanding.
  3409.  
  3410.     * commands.c (execute_file_commands): Don't check FILE->command_state.
  3411.     We won't get called unless it's cs_not_started.
  3412.  
  3413.     * read.c (read_makefile): Call collapse_line on the variable-expanded
  3414.     rule line after checking for ; and #.
  3415.  
  3416.     * job.c (start_job): When there are no more commands, always return 0.
  3417.     * commands.c (execute_file_commands): Don't put the new child in the
  3418.     `children' chain unless FILE->command_state is cs_running.
  3419.  
  3420.     * read.c (read_makefile): Rewrote ;-handling to only do it once (why
  3421.     did I do it twice??) and to check for a # before the ;.
  3422.  
  3423.     * job.c (start_job): Set CHILD->file->update_status to 0 when we run
  3424.     out of commands.  Set it to 1 before returning failure.
  3425.     (child_handler): Don't set C->file->update_status to 0 when start_job
  3426.     returns success and commands are not running.
  3427.  
  3428.     * read.c (read_makefile): If there is a # before the ; for commands,
  3429.     forget the ; and commands.
  3430.  
  3431. Thu Oct 12 15:48:16 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3432.  
  3433.     * job.c (child_execute_job): Pass -c to the shell.
  3434.  
  3435. Wed Oct 11 18:41:10 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3436.  
  3437.     * Version 3.56.5.
  3438.  
  3439.     * main.c (define_makeflags): Cleaned up to keep better track of dashes
  3440.     written, etc.
  3441.  
  3442.     * function.c (expand_function: `shell'): When converting newlines to
  3443.     spaces in output, search with `index' calls rather than a simple loop.
  3444.  
  3445.     * main.c (main): Make sure stdout is line-buffered.
  3446.  
  3447.     * main.c (decode_switches): Always check for missing switch arg.
  3448.  
  3449. Mon Oct  9 17:17:23 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3450.  
  3451.     * Version 3.56.4.
  3452.  
  3453. Sat Oct  7 00:32:25 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3454.  
  3455.     * commands.c (set_file_variables): #ifdef NO_ARCHIVES, still set $@ and
  3456.     $%.
  3457.  
  3458.     * commands.c (set_file_variables): Include a trailing slash in the
  3459.     directory variables (@D, etc.).
  3460.  
  3461.     * job.c (child_handler): Call notice_finished_file after changing a
  3462.     child's state to `cs_finished'.
  3463.     * remake.c (update_file_1): Don't call notice_finished_file if
  3464.     FILE->command_state == cs_finished.
  3465.  
  3466. Wed Oct  4 16:09:33 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3467.  
  3468.     * Version 3.56.3.
  3469.  
  3470. Tue Oct  3 21:09:51 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3471.  
  3472.     * read.c (read_all_makefiles): When setting elements of MAKEFILES from
  3473.     the contents of read_makefiles, make sure we're using the right
  3474.     element.
  3475.  
  3476.     * dir.c, glob.c [USGr3 || DIRENT]: Don't define d_ino as d_fileno.
  3477.  
  3478.     * Version 3.56.2.
  3479.  
  3480.     * remake.c (update_file_1): Return zero after calling remake_file if
  3481.     FILE->command_state != cs_finished.  Test update_status thoroughly.
  3482.  
  3483.     * commands.c (execute_file_commands): Don't call notice_finished_file.
  3484.  
  3485.     * remake.c (remake_file): Return immediately after calling
  3486.     execute_file_commands.
  3487.  
  3488. Sat Sep 30 14:57:05 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3489.  
  3490.     * Version 3.56.1 (alpha).
  3491.  
  3492.     * file.h (struct file): Made `update_status' not be a bitfield, since
  3493.     some broken compilers don't handle it right.
  3494.  
  3495.     * function.c (expand_function: `join'): Don't clobber the pointers and
  3496.     then try to free them.
  3497.  
  3498.     * job.c (exec_command): Fixed & vs = precedence problem.
  3499.  
  3500. Thu Sep 28 17:29:56 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3501.  
  3502.     * remake.c (update_file_1): Fixed typo in debugging output.
  3503.  
  3504.     * remake.c (library_file_mtime): Search for /usr/local/lib/libLIB.a
  3505.     after /usr/lib/libLIB.a.
  3506.  
  3507. Tue Sep 26 16:07:58 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  3508.  
  3509.     * read.c (conditional_line): For `ifeq (a, b)', swallow space after the
  3510.     comma.
  3511.  
  3512. Sun Sep 24 13:25:32 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3513.  
  3514.     * function.c (patsubst_function): If BY_WORD and the match is not a
  3515.     full word, update the text pointer correctly.
  3516.  
  3517.     * function.c (expand_function: `word'): Don't lose track of the second
  3518.     arg's expansion and free something else instead.
  3519.  
  3520. Fri Sep 22 16:15:29 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3521.  
  3522.     * Version 3.56.
  3523.  
  3524. Thu Sep 21 14:28:42 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3525.  
  3526.     * main.c (main): Make an array of the mtimes of the makefiles before
  3527.     updating them, and compare their file_mtimes against this later.  Don't
  3528.     re-exec if a makefile was successfully updated but didn't change.  If a
  3529.     makefile failed to be remade and no longer exists, die.  If a makefile
  3530.     failed to be remade, but changed anyway, re-exec.  If a makefile failed
  3531.     to be remade, but is unchanged, continue on.
  3532.  
  3533. Wed Sep 20 18:02:07 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3534.  
  3535.     * Version 3.55.6.
  3536.  
  3537.     * implicit.c (pattern_search): Maintain an array CHECK_LASTSLASH of the
  3538.     CHECK_LASTSLASH flag values used to match each member of TRYRULES.
  3539.     When making FILE->stem, if CHECKED_LASTSLASH[FOUNDRULE], prepend the
  3540.     part of FILENAME before LASTSLASH.
  3541.  
  3542. Tue Sep 19 17:44:08 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3543.  
  3544.     * dir.c (dir_file_exists_p): Check for FILENAME being nil before
  3545.     checking for it being "".
  3546.  
  3547.     * main.c (define_makeflags): Fixed test for whether a flag/flag_off
  3548.     option was non-default.  Also changed to generate a string that Unix
  3549.     Make will grok (except for FP/int values and new flags).
  3550.  
  3551.     * job.c (child_execute_job): Don't use the shell's -c option.
  3552.     Also fixed an off-by-one bug in the ARGV -> shell arg list copying.
  3553.  
  3554. Mon Sep 18 15:17:31 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3555.  
  3556.     * Version 3.55.5.
  3557.  
  3558.     * read.c (parse_file_seq): Check the beginning of the file name for a
  3559.     `./', not the two chars after the end of the name (Q rather than P).
  3560.  
  3561.     * job.c (child_execute_job): Include all of ARGV in the arg list for
  3562.     the shell.
  3563.  
  3564.     * main.c (define_makeflags): Don't include floating and positive_int
  3565.     options in !PF.
  3566.  
  3567.     * job.c (exec_command): Set the effective gid to the real gid before
  3568.     execing.
  3569.  
  3570.     * job.c (child_execute_job): Don't clobber the arg list when execing
  3571.     the shell.
  3572.  
  3573. Sun Sep 17 15:27:19 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3574.  
  3575.     * main.c (define_makeflags): Moved all the checking inside the switch.
  3576.  
  3577.     * load.c [LDAV_BASED] (load_average): When we can't get the load
  3578.     average, return zero instead of running off the end.
  3579.  
  3580.     * file.c: Include variables.h.
  3581.     * job.c: Declare dup2 and {block,unblock}_remote_children.
  3582.     * file.h: Declare f_mtime.
  3583.     * job.c: Don't declare construct_command_argv, since job.h does.
  3584.     * function.c, main.c, load.c, remake.c: Include job.h.
  3585.     * load.c [LDAV_BASED] (load_average): Declare nlist.
  3586.     * variable.h: Declare print_file_variables.
  3587.     * job.c [!USG]: Don't declare sigsetmask.
  3588.     [!USG]: Declare getdtablesize.
  3589.     Don't declare load_average.  Do declare wait_to_start_job.
  3590.     Declare vfork, gete[gu]id, execve.
  3591.     * commands.c: Declare remote_kill, getpid.
  3592.     * make.h: Declare kill, exit, sigblock, pipe, close, ctime, open,
  3593.     lseek, read.
  3594.     * make.h [not USG]: Declare sigsetmask.
  3595.     * job.h: Declare wait_for_children and {block,unblock}_children.
  3596.  
  3597.     * dir.c (dir_file_exists_p): If FILENAME is nil, read in the whole
  3598.     directory.
  3599.     (find_directory): When we want to read in the whole directory, call
  3600.     dir_file_exists_p with nil instead of "".
  3601.  
  3602.     * file.h (struct file), job.h (struct child),
  3603.       variable.h (struct variable): Use bitfields for flags.
  3604.     * make.h (ENUM_BITFIELD): If GCC or #ifdef ENUM_BITFIELDS, define as
  3605.     :BITS, else empty.
  3606.     * compatMakefile (defines): Document ENUM_BITFIELDS.
  3607.  
  3608. Sat Sep 16 12:38:58 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3609.  
  3610.     * Version 3.55.4 (alpha).
  3611.  
  3612.     * GNUmakefile (dist): Depend on default and doc.
  3613.  
  3614.     * load.c [LDAV_BASED]: Include <nlist.h> rather than <a.out.h>; #ifdef
  3615.     NLIST_NAME_UNION, use n_un.n_name instead of n_name.
  3616.     * compatMakefile (LOAD_AVG): Document NLIST_NAME_UNION.
  3617.  
  3618.     * job.c [USG-ish]: Don't redefine WIF{SIGNALED,EXITED} if they're
  3619.     already defined.
  3620.  
  3621. Fri Sep 15 13:59:42 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3622.  
  3623.     * glob.c, dir.c [USGr3 or DIRENT]: If neither d_ino, nor d_fileno is
  3624.     defined, define d_ino as d_fileno.
  3625.  
  3626. Thu Sep 14 18:29:38 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3627.  
  3628.     * job.c: Don't declare exec_command static.
  3629.  
  3630.     * make.texinfo (Name Index): Changed title to include directives.
  3631.  
  3632.     * Version 3.55.3 (alpha).
  3633.  
  3634.     * make.texinfo (Running: Options): Document -e.
  3635.  
  3636.     * main.c (main): Always give imported environment variables origin
  3637.     `o_env'.
  3638.     * variable.c (define_variable_in_set): Under -e, if ORIGIN, or an
  3639.     existing variable's origin, is `o_env', make it `o_env_override'.
  3640.  
  3641.     * load.c: Use the symbol KERNEL_FILE_NAME instead of KERNEL_FILE.
  3642.     * compatMakefile: Changed the comment for `LOAD_AVG' accordinly.
  3643.  
  3644. Thu Sep  7 16:46:26 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3645.  
  3646.     * Version 3.55.2 (alpha).
  3647.  
  3648.     * variable.c (print_variable_set), rule.c (print_rule_data_base),
  3649.     file.c (print_file_data_base): If NO_FLOAT is defined, don't use
  3650.     floating-point for printing statistics.
  3651.     * compatMakefile (defines): Document NO_FLOAT.
  3652.  
  3653.     * make.h (HASH): New macro to add the hashing value of one char to a
  3654.     variable.c.
  3655.     * file.c (lookup_file, enter_file, rename_file): Use it.
  3656.     * dir.c (find_directory, dir_file_exists_p, file_impossible_p): Ditto.
  3657.     * variable.c (define_variable_in_set, lookup_variable): Same here.
  3658.  
  3659.     * variable.c, file.c, dir.c: Don't define *_BUCKETS if they are already
  3660.     defined.
  3661.  
  3662.     * compatMakefile (defines): Added comment about defining NO_ARCHIVES.
  3663.     (ARCHIVES, ARCHIVES_SRC): New variables for {ar,arscan}.[oc].
  3664.     (objs, srcs): Use $(ARCHIVES) and $(ARCHIVES_SRC).
  3665.     * commands.c (set_file_variables), dir.c (file_exists_p),
  3666.     remake.c (touch_file, name_mtime), implicit.c (try_implicit_rule,
  3667.     pattern_search), make.h: If NO_ARCHIVES is #defined, don't do any
  3668.     archive stuff.
  3669.  
  3670.     * commands.c (set_file_variables): Don't kill the last char of
  3671.     directory names in $([@*<%?^]D).
  3672.  
  3673. Wed Sep  6 15:23:11 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  3674.  
  3675.     * default.c (default_terminal_rules {%:: %,v}, {%:: RCS/%,v}): Don't
  3676.     run co if the target exists.
  3677.  
  3678.     * glob.c (glob_match): [!xyz], rather than [^xyz], means none of [xyz].
  3679.  
  3680.     * glob.c: Misc minor cosmetic changes.
  3681.  
  3682. Tue Sep  5 14:49:56 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  3683.  
  3684.     * load.c [LDAV_BASED] (load_average): Check for == -1, rather than < 0
  3685.     to see if lseek fails.  On some systems, `avenrun' is at an offset >
  3686.     (2**31)-1, and lseek succeeds, returning a negative value.
  3687.  
  3688. Mon Sep  4 11:07:58 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  3689.  
  3690.     * rule.c (new_pattern_rule): Return `int' instead of `void': nonzero if
  3691.     the passed rule was used, zero if not.
  3692.     (install_pattern_rule): Pay attention to the return from
  3693.     new_pattern_rule, and don't set the rule's `terminal' flag or give it
  3694.     commands unless it's used.
  3695.     (create_pattern_rule): Same idea.
  3696.  
  3697.     * dir.c (find_directory): Removed unused variable.
  3698.  
  3699.     * commands.c (execute_file_commands): Removed unused variable.
  3700.  
  3701.     * read.c (record_files): Don't use NAME after freeing it.
  3702.  
  3703. Sat Sep  2 00:33:19 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  3704.  
  3705.     * Version 3.55.1 (alpha).
  3706.  
  3707.     * function.c (string_glob): Don't add spaces after file names that
  3708.     aren't added.  (Also means don't add spaces without checking the size
  3709.     of the buffer.)
  3710.  
  3711.     * remake.c (update_goal_chain): Don't remove makefiles with cmds and no
  3712.     deps from the chain.
  3713.     * main.c (main): Do it here, before calling update_goal_chain.
  3714.  
  3715.     * remake.c (update_goal_chain): When updating fails, change STATUS even
  3716.     if MAKEFILES is set.  Also stop remaking when updating fails if not
  3717.     under -k and MAKEFILES is not set.
  3718.  
  3719.     * remake.c (remake_file, update_file_1, notice_finished_file),
  3720.     commands.c (execute_file_commands), make.h, commands.h: The functions
  3721.     remake_file, notice_finished_file, and execute_file_commands no longer
  3722.     return values, and their callers no longer expect values returned.
  3723.  
  3724.     * remake.c (notice_finished_file): Don't set FILE's modtime to now if
  3725.     it is a non-target with no commands.
  3726.  
  3727. Fri Sep  1 00:04:39 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  3728.  
  3729.     * read.c (read_all_makefiles): After freeing each element on MAKEFILES,
  3730.     replace it with the name stored in read_makefiles by read_makefile.
  3731.  
  3732.     * remake.c (update_file_1): Don't decide not to remake if FILE has no
  3733.     cmds and no deps actually changed if FILE doesn't have any deps.
  3734.  
  3735.     * file.c (remove_intermediate): Remove precious files that also have
  3736.     the `dontcare' flag set.
  3737.  
  3738.     * remake.c (update_file_1): Don't always remake if FILE has cmds but no
  3739.     deps; only if FILE is double-colon.  (I don't know why this should be
  3740.     done for double-colon targets, but that's what Unix make does.)
  3741.  
  3742.     * load.c [LDAV_BASED] (load_average): Write error messages if the
  3743.     various system calls fail.  Keep track of if we've failed before.
  3744.     The first time we fail, write a message saying -l won't be enforced.
  3745.     The first time we succeed after having failed, write a message saying
  3746.     -l will be enforced again.
  3747.  
  3748.     * remake.c [USG]: Don't #include <sys/file.h>
  3749.  
  3750.     * load.c [generic Unix LDAV_BASED]: #include <fcntl.h> #ifdef USG,
  3751.     else <sys/file.h> instead.
  3752.  
  3753.     * job.c [USG && !USGr3 && !HAVE_DUP2]: Remove redundant
  3754.     #include <errno.h> and declaration of `errno'.
  3755.     [...] (dup2): Fixed so it won't always lose.
  3756.  
  3757.     * default.c (default_suffix_rules: .texinfo.dvi): Copy, rather than
  3758.     move, the aux and index files, so the TeX run can use them.
  3759.  
  3760.     * compatMakefile: Remove redundant comment.
  3761.  
  3762.     * load.c [generic Unix LDAV_BASED]: Include <a.out.h> instead of
  3763.     <nlist.h>, since the `struct nlist' declaration in <nlist.h> varies
  3764.     more than the one in <a.out.h>.
  3765.     (load_average): Use the `n_un.n_name' field of the `struct nlist',
  3766.     since the <a.out.h> declaration uses the union.
  3767.  
  3768.     * main.c (main): For the temporary files made for stdin makefiles, set
  3769.     the `intermediate' and `dontcare' flags.
  3770.     * file.c (remove_intermediates): Don't print any messages for files
  3771.     whose `dontcare' flag is set.  (The only files that will be
  3772.     intermediate and `dontcare' will be the temporary files made for stdin
  3773.     makefiles.)
  3774.  
  3775.     * job.c (exec_command): Made global.
  3776.     * job.h: Declare it.
  3777.     * main.c (main): Use exec_command when re-execing.
  3778.  
  3779.     * make.h: Declare environ.
  3780.     * make.c: Don't.
  3781.  
  3782.     * job.c (child_execute_job): New function to perform everything done in
  3783.     the child side of a fork (for a job or `shell' function).
  3784.     (start_job): Call it.
  3785.     * job.h: Declare construct_command_argv and child_execute_job.
  3786.     * function.c (expand_function: `shell'): Use child_execute_job.
  3787.  
  3788. Thu Aug 31 18:42:51 1989  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  3789.  
  3790.     * function.c (expand_function: `shell'): Remove a trailing newline
  3791.     instead of turning it into a space.
  3792.  
  3793.     * main.c (main): Do init_siglist #ifdef HAVE_SIGLIST.
  3794.  
  3795.     * job.c [WTERMSIG || (USG && !HAVE_SYS_WAIT)]: Test each W* macro
  3796.     separately and define all those that aren't defined.
  3797.  
  3798. Sat Aug 26 15:13:21 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  3799.  
  3800.     * ar.c (ar_name): Return zero for `(foo)'.
  3801.  
  3802.     * Version 3.55.
  3803.  
  3804.     * make.texinfo (Rules: Multiple Targets): Make this node's `next'
  3805.     pointer point to `Static Pattern'.
  3806.     * make.texinfo (Makefiles: MAKEFILES Variable): Make this node's `prev'
  3807.     pointer point to `Makefile Names'.
  3808.  
  3809.     * make.1: Renamed to make.man.
  3810.     * compatMakefile: Define `mandir' and `manext'.
  3811.     (install): Depend on $(mandir)/make.$(manext).
  3812.     ($(mandir)/make.$(manext)): Depend on make.man and copy it to $@.
  3813.     ($(bindir)/make): Use `make' rather than $<; so Unix make can grok it.
  3814.  
  3815. Thu Aug 24 03:35:48 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  3816.  
  3817.     * variable.c (target_environment): Allow variables that start with
  3818.     underscores.
  3819.  
  3820. Wed Aug 23 22:50:32 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  3821.  
  3822.     * variable.c (target_environment): Reject variables that don't start
  3823.     with letters.
  3824.  
  3825. Tue Aug 22 04:14:29 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  3826.  
  3827.     * GNUmakefile (make-$(version).tar.Z): Put make.1 (the Unix manual
  3828.     page) in the tar file.
  3829.  
  3830.     * variable.c (target_environment): Don't write variables with origin
  3831.     o_default (i.e., ones from default.c).
  3832.     * make.texinfo (Commands: Recursion: Variables/Recursion): Document
  3833.     that default variables are not put in the environment.
  3834.  
  3835.     * remake.c (update_file_1): Remake all targets with commands but no
  3836.     deps.
  3837.  
  3838. Sat Aug 19 06:03:16 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  3839.  
  3840.     * remake.c (update_file_1): In the final loop, set the deps'
  3841.     `changed' members if they are newer than FILE.
  3842.  
  3843.     * remake.c (update_goal_chain): Under -d, print a message if we decide
  3844.     not to remake a makefile so as to avoid a possible infinite loop.
  3845.  
  3846. Fri Aug 18 20:30:14 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  3847.  
  3848.     * remake.c (remake_file): Cleaned up.
  3849.  
  3850.     * commands.c (execute_file_commands): If the commands are empty, set
  3851.     FILE->update_status to zero before returning.
  3852.  
  3853.     * remake.c (notice_finished_file): Set `last_mtime' fields to zero
  3854.     instead of calling name_mtime; file_mtime will do that later if anybody
  3855.     cares.
  3856.  
  3857. Thu Aug 17 10:01:11 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  3858.  
  3859.     * make.texinfo (Rules: Wildcards: Wildcard Examples): Give this node a
  3860.     `prev' pointer.
  3861.  
  3862.     * Version 3.54.9 (alpha).
  3863.  
  3864.     * make.texinfo: Fixed some @nodes.
  3865.  
  3866.     * remake.c (check_dep): Don't set *MUST_MAKE_PTR if FILE doesn't exist
  3867.     after running update_file.
  3868.  
  3869.     * remake.c (notice_finished_file): If FILE has no commands, pretend its
  3870.     modtime is now.
  3871.  
  3872.     * remake.c (update_file_1): In the loops that call update_file on the
  3873.     deps, compare modtimes before and after (unless deps are still being
  3874.     made) and set the deps' `changed' members.  Do not set the `changed'
  3875.     members in the loop that prints the newer/older debugging messages.
  3876.     * remake.c (update_file_1): If no deps changed and FILE has no
  3877.     commands, decide it doesn't need remaking.
  3878.  
  3879.     * remake.c (update_file_1): Print a debugging message if we take
  3880.     commands from default_file.
  3881.  
  3882.     * make.texinfo (Rules: Directory Search: Selective Search): Removed
  3883.     note about warning for `vpath' with a constant pathname, since it isn't
  3884.     warned about anymore.
  3885.  
  3886.     * remake.c (update_goal_chain): If MAKEFILES, remove makefiles which
  3887.     are targets and have no deps.
  3888.     * make.texinfo (Makefiles: Remaking Makefiles): Document that makefiles
  3889.     will not be remade if they are targets but have no dependencies.
  3890.  
  3891. Tue Aug 15 00:00:08 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  3892.  
  3893.     * remake.c (notice_finished_file): Increment files_remade for non-phony
  3894.     files if they didn't exist before (even if they still don't).
  3895.  
  3896.     * job.c: Include <errno.h> and declare errno.
  3897.  
  3898.     * job.c (exec_command): If the execve fails with ENOEXEC (Exec format
  3899.     error), return instead of exiting the child process.
  3900.  
  3901.     * job.c (start_job): In the child side, if exec_command fails, try
  3902.     using the shell.
  3903.  
  3904.     * job.c (start_job): In the child side, call unblock_children instead
  3905.     of sigsetmask.
  3906.  
  3907.     * remake.c (notice_finished_file): Under -n or -q, always increment
  3908.     files_remade for non-phony files.
  3909.  
  3910.     * rule.c (intall_pattern_rule): Use find_percent.
  3911.  
  3912.     * vpath.c (vpath_search): Pass the `percent' members to
  3913.     pattern_matches.
  3914.  
  3915. Mon Aug 14 23:30:24 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  3916.  
  3917.     * vpath.c (struct vpath): New member `percent', to hold a pointer into
  3918.     the pattern where the % is.
  3919.     (construct_vpath_list): Call find_percent on the pattern and set the
  3920.     new `percent' member.
  3921.     * read.c (read_makefile): Don't run find_percent on `vpath' directive
  3922.     patterns.
  3923.  
  3924.     * function.c (pattern_matches): Take new arg PERCENT, a pointer into
  3925.     PATTERN where the % is.  If PERCENT is nil, copy PATTERN into local
  3926.     space and run find_percent on it.
  3927.     (expand_function: `filter', `filter-out'): Pass new arg to
  3928.     pattern_matches.
  3929.     * read.c (record_files): Pass PATTERN_PERCENT to pattern_matches for
  3930.     static pattern rules.  Save the percent pointer into implicit rule
  3931.     targets, and pass them to create_pattern_rule.
  3932.     * rule.c (convert_to_pattern): Pass new arg to create_pattern_rule.
  3933.     (create_pattern_rule): Take new arg TARGET_PERCENTS, nil or an array of
  3934.     pointers into the corresponding elements of TARGETS, where the %s are.
  3935.  
  3936. Sun Aug 13 00:29:19 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  3937.  
  3938.     * Version 3.54.8.
  3939.  
  3940.     * README.templatate, README-doc.template: New files, turned into README
  3941.     and README-doc to go into the two distribution tar files.
  3942.     * GNUmakefile: Added a rule to edit the version number in
  3943.     README.template and README-doc.template, producing README and
  3944.     README-doc.
  3945.  
  3946.     * remake.c (update_goal_chain): If -n or -q is in effect for a
  3947.     makefile, and it got updated, don't change STATUS, so we can still
  3948.     return -1 (meaning nothing was done).  This avoids an infinite loop on
  3949.     "make -n Makefile".
  3950.  
  3951. Sat Aug 12 23:14:24 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  3952.  
  3953.     * remake.c (notice_finished_file): Treat -q the same as -n.
  3954.  
  3955.     * remake.c (update_goal_chain): Fixed handling of return from
  3956.     update_file.  If -n or -q is in effect, ignore it.
  3957.  
  3958.     * job.c (start_job): Don't test for -t.  We should never get called in
  3959.     that case.
  3960.  
  3961. Fri Aug 11 04:09:14 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  3962.  
  3963.     * function.c (expand_function): Removed unused variables.
  3964.     (handle_function): Removed unused variable.
  3965.  
  3966.     * main.c (main): Removed unused variable.
  3967.  
  3968. Wed Aug  9 09:37:10 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  3969.  
  3970.     * Version 3.54.7.
  3971.  
  3972.     * remake.c (notice_finished_file): If FILE's modtime actually changed,
  3973.     increment files_remade.
  3974.     (remake_file): Don't increment files_remade.
  3975.  
  3976.     * remake.c (update_file): Don't print "up to date" messages for
  3977.     phony files.
  3978.  
  3979.     * job.c (child_handler): Don't set C->file->update_status to 1 if
  3980.     start_job returns nonzero under -n or -t.
  3981.  
  3982.     * expand.c (variable_expand): Count parens in $(foo:a=b) refs.
  3983.  
  3984.     * main.c: Removed old declaration of `glob_tilde' (which hasn't existed
  3985.     for a few months).
  3986.  
  3987. Tue Aug  8 23:53:43 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  3988.  
  3989.     * job.c (exec_command): Fixed to not ignore the last path component and
  3990.     to do the right thing with an empty path.
  3991.  
  3992. Fri Aug  4 15:58:19 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  3993.  
  3994.     * remake.c (library_file_mtime): Look for libLIB.a, not /libLIB.a.
  3995.     Do VPATH search on libLIB.a, not /usr/lib/libLIB.a
  3996.  
  3997. Thu Aug  3 20:42:00 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  3998.  
  3999.     * job.c [HAVE_SYS_WAIT or not USG]: If WIFSIGNALED is not defined by
  4000.     <sys/wait.h>, define it as (WTERMSIG != 0).
  4001.  
  4002. Tue Aug  1 19:25:34 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4003.  
  4004.     * remake.c (remake_file): If FILE has no commands and is a target,
  4005.     don't set its time to now.  The time gets reset by notice_finished_file
  4006.     anyway, and it isn't needed since check_dep checks for nonexistence.
  4007.  
  4008.     * Version 3.54.6.
  4009.  
  4010.     * read.c (read_makefile): Don't read off the end of the string after an
  4011.     `include'.
  4012.  
  4013.     * job.c (exec_command): New function to search the path for a file and
  4014.     execute it.
  4015.     (start_job): Use exec_command rather than execvp.
  4016.  
  4017.     * read.c (read_makefile): Expand `include' directive args before
  4018.     parsing them.  Allow trailing whitespace after filename.
  4019.  
  4020.     * variable.c (target_environment): Put makelevel + 1, rather than
  4021.     makelevel, in the `MAKELEVEL' envariable.
  4022.  
  4023. Sat Jul 29 10:27:04 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4024.  
  4025.     * remake.c (notice_finished_file): Don't get the new modtime of phony
  4026.     files.
  4027.  
  4028.     * remake.c (remake_file): Run commands instead of touching under -t if
  4029.     FILE->cmds->any_recurse is set.
  4030.  
  4031.     * commands.h (struct commands): Add new member `any_recurse', to be set
  4032.     nonzero if any `lines_recurse' element is nonzero.
  4033.     * commands.c (chop_commands): Set the `any_recurse' member.
  4034.  
  4035.     * commands.c (execute_file_commands): Split chopping of commands into
  4036.     lines into new function chop_commands.
  4037.     * commands.h: Declare chop_commands.
  4038.  
  4039.     * read.c (read_makefile): Test for a line beginning with a tab after
  4040.     checking for conditional lines, but before all other checks.
  4041.  
  4042. Fri Jul 28 18:10:29 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4043.  
  4044.     * read.c (read_makefile): Match directives against collapsed line
  4045.     and use that for their args.
  4046.  
  4047.     * read.c (read_makefile): Warn about extra text after `include'.
  4048.  
  4049. Tue Jul 25 14:34:25 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4050.  
  4051.     * make.texinfo (Rules: Directory Search: Selective Search): Fixed
  4052.     example to use correct `vpath' syntax.
  4053.  
  4054. Mon Jul 24 12:10:58 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4055.  
  4056.     * Version 3.54.5.
  4057.  
  4058.     * job.c (start_job): In the child side, unblock SIGCHLD.
  4059.  
  4060. Fri Jul 21 18:25:59 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4061.  
  4062.     * make.h: Don't include <sys/types.h> #ifdef sun.
  4063.  
  4064. Mon Jul 17 14:29:10 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4065.  
  4066.     * implicit.c (pattern_search): If ar_name (FILENAME), don't check for
  4067.     directory names.
  4068.  
  4069.     * job.c (wait_for_children): Changed "waiting for children" message to
  4070.     "waiting for unfinished jobs".
  4071.  
  4072. Fri Jul 14 13:17:13 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4073.  
  4074.     * load.c (load_average): Use an unsigned offset into kmem.
  4075.  
  4076. Thu Jul 13 18:44:49 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4077.  
  4078.     * variable.c (pop_variable_scope): Don't free the head of the chain of
  4079.     variables in each bucket twice.
  4080.  
  4081. Tue Jul 11 06:45:24 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4082.  
  4083.     * GNUmakefile: Include COPYING in the doc tar file.
  4084.  
  4085.     * variable.c, read.c, misc.c, job.c, function.c: Replace some identical
  4086.     "for" loops with next_token or end_of_token calls.
  4087.  
  4088. Mon Jul 10 16:55:08 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4089.  
  4090.     * Version 3.54.4.
  4091.  
  4092.     * compatMakefile: Documented new conditionals.
  4093.  
  4094.     * job.c: Don't define sys_siglist if HAVE_SIGLIST is defined.
  4095.     Don't define dup2 if HAVE_DUP2 is defined.
  4096.  
  4097.     * job.c (child_handler): Interpret the return from start_job correctly.
  4098.  
  4099.     * remake.c (update_file_1): Don't write "target not remade because of
  4100.     errors" message under -n or -q.
  4101.  
  4102.     * read.c: Declare getpwnam.
  4103.  
  4104.     * glob.c: Use <dirent.h> if DIRENT is defined.
  4105.     [USG]: Don't declare memcpy, since <memory.h> does.
  4106.  
  4107. Fri Jul  7 20:53:13 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4108.  
  4109.     * misc.c (collapse_line): Copy the line over in the right place.
  4110.  
  4111. Fri Jul  7 18:33:24 1989  Roland McGrath    (fsf at void.ai.mit.edu)
  4112.  
  4113.     * remake.c: Conditionalize inclusion of <sys/file.h> on not
  4114.     USG, since HP-UX defines a `struct file' there.
  4115.  
  4116. Fri Jul  7 12:11:30 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4117.  
  4118.     * job.c: If WTERMSIG is defined by <sys/wait.h>, define WAIT_T as int,
  4119.     and don't define other macros; this covers HP-UX.
  4120.     If WTERMSIG is not defined, use int or union wait based on USG and
  4121.     HAVE_SYS_WAIT; this covers BSD and SysV.
  4122.  
  4123.     * Version 3.54.3 (alpha).
  4124.  
  4125.     * job.c [USG and not USGr3]: Include <errno.h> and declare errno.
  4126.  
  4127.     * job.c (unblock_children [USG]): Declare child_handler.
  4128.  
  4129.     * job.c: Renamed WRETCODE to WEXITSTATUS.
  4130.     [HAVE_SYS_WAIT or not USG]: Undefine WTERMSIG, WCOREDUMP, and
  4131.     WEXITSTATUS before defining them.  The HP-UX <sys/wait.h> defines them.
  4132.  
  4133.     * main.c (main): If there are no goals, fatal AFTER printing the data
  4134.     base under -p.
  4135.  
  4136. Thu Jul  6 22:43:33 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  4137.  
  4138.     * glob.c [USG]: #define rindex as strrchr.
  4139.  
  4140.     * job.c [USG]: Include <sys/param.h> and #define getdtablesize() as
  4141.     NOFILE.
  4142.  
  4143. Wed Jul  5 09:36:00 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4144.  
  4145.     * Version 3.54.2 (alpha).
  4146.  
  4147.     * expand.c (variable_expand): When expanding recursive variable
  4148.     references (${${a}}), use the correct delimiters in the constructed
  4149.     variable reference.
  4150.  
  4151. Mon Jul  3 18:29:26 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  4152.  
  4153.     * compatMakefile: Clear out and redefine the .SUFFIXES list because
  4154.     silly Sun 4 make defines .cps.h.
  4155.  
  4156.     * compatMakefile: Fix comment about -DNO_MINUS_C_MINUS_O.
  4157.  
  4158.     * remake.c: Include <sys/file.h> for O_* on 4.2.
  4159.  
  4160.     * commands.c: Define sigmask if it's not defined.
  4161.  
  4162. Fri Jun 30 07:33:08 1989  Roland McGrath  (roland at apple-gunkies.ai.mit.edu)
  4163.  
  4164.     * remake.c (remake_file): Don't always increment files_remade.
  4165.  
  4166.     * variable.c (push_new_variable_scope): Zero the new variable hash
  4167.     table.
  4168.  
  4169. Thu Jun 29 17:14:32 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4170.  
  4171.     * expand.c (variable_expand): When terminating the variable expansion
  4172.     buffer, use variable_buffer_output instead of a simply zero store,
  4173.     because the buffer may need to be enlarged.
  4174.  
  4175. Wed Jun 28 16:53:47 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4176.  
  4177.     * Version 3.54.
  4178.  
  4179.     * default.c (default_suffixes): Added `.ln'.
  4180.     (default_suffix_rules): Changed lint rules to use -C.
  4181.  
  4182. Thu Jun 22 20:49:35 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4183.  
  4184.     * job.c (start_job): Set `environ' to CHILD->environment before execing
  4185.     in the child process!
  4186.  
  4187. Tue Jun 20 17:23:13 1989  Roland McGrath  (roland at spiff.ai.mit.edu)
  4188.  
  4189.     * compatMakefile: Put job.h and rule.h in `srcs'.
  4190.  
  4191.     * Version 3.53.
  4192.  
  4193. Mon Jun 19 16:25:18 1989  Roland McGrath  (roland at spiff.ai.mit.edu)
  4194.  
  4195.     * job.c (start_job): If there are no more commands, return nonzero
  4196.     under -n or -t.
  4197.  
  4198.     * compatMakefile (make): Pass `-f' to mv.
  4199.  
  4200.     * GNUmakefile: If `ARCH' or `machine' is defined, make $(ARCH)/*.o and
  4201.     $(ARCH)/make instead of *.o and make.
  4202.  
  4203.     * function.c (string_glob): Don't try to use freed storage!
  4204.  
  4205.     * read.c (readline): If there is only one byte of space in the buffer,
  4206.     enlarge the buffer before reading more.
  4207.  
  4208.     * arscan.c [M_XENIX]: Miscellaneous minor changes for Xenix.
  4209.  
  4210. Sun Jun 18 13:07:45 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4211.  
  4212.     * GNUmakefile (depend): Split commands into two lines so they won't be
  4213.     so long when variable-expanded.
  4214.  
  4215.     * compatMakefile: Documented MINUS_C_MINUS_O meaning.  The line
  4216.     describing it got removed when the USG/wait stuff was documented.
  4217.  
  4218. Sat Jun 17 22:56:54 1989  Roland McGrath  (roland at hobbes.ai.mit.edu)
  4219.  
  4220.     * Version 3.52.
  4221.  
  4222. Mon Jun 12 17:45:11 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4223.  
  4224.     * remake.c (check_dep): Drop circular dependencies instead of fataling.
  4225.     (update_file_1 already does this.)
  4226.  
  4227.     * default.c (default_suffix_rules): For .s -> .o, put the -o flag to
  4228.     the assembler before the source file name.
  4229.  
  4230. Sun Jun 11 12:00:52 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  4231.  
  4232.     * Version 3.51.
  4233.  
  4234.     * make.texinfo (Features): Noted 1003.2 requirement of `+' meaning.
  4235.  
  4236.     * file.c (remove_intermediates): If !SIG, write a single "rm" command
  4237.     line, listing all files.
  4238.  
  4239.     * read.c (read_makefile): Don't free the storage for the passed
  4240.     filename, since it might not be malloc'd.  When doing an included
  4241.     makefile, free the name's storage.
  4242.     (read_all_makefiles): Use variable_expand to find the value of
  4243.     `MAKEFILES'.  Free the storage for the names of -f makefiles.
  4244.     (read_makefile): Allocate storage for the makefile name in the
  4245.     `struct file' in read_makefiles.
  4246.  
  4247.     * make.texinfo (Running: Instead of Execution): Document the effect of
  4248.     + and $(MAKE)/${MAKE}.
  4249.  
  4250.     * make.texinfo (Functions: Foreach Function): Document that if the
  4251.     iteration variable was undefined before the `foreach' call, it will be
  4252.     undefined after the call.
  4253.  
  4254.     * commands.c: Split into commands.c, job.h, and job.c.
  4255.  
  4256.     * rule.c (try_implicit_rule, pattern_search): Moved to new file
  4257.     implicit.c.
  4258.  
  4259.     * rule.c: Split into rule.h, rule.c, and default.c.
  4260.     * default.c (install_default_pattern_rules): Renamed to
  4261.     install_default_implicit_rules.
  4262.     * make.h, main.c (main): Renamed uses.
  4263.  
  4264.     * make.c: Renamed to misc.c.
  4265.  
  4266.     * make.c (main, log_working_directory, decode_switches,
  4267.     decode_env_switches, define_makeflags, die, print_version,
  4268.     print_data_base): Moved to new file main.c.
  4269.  
  4270.     * commands.c (execute_file_commands): Don't collapse backslash-newlines
  4271.     here.  When chopping the commands up into lines, don't chop at
  4272.     backslash-newlines.
  4273.     (start_job): Collapse backslash-newlines after printing the line.
  4274.  
  4275.     * commands.c (start_job): Don't collapse backslash-newlines here.
  4276.     (execute_file_commands): Collapse backslash-newlines before chopping
  4277.     the commands up into lines.
  4278.  
  4279.     * commands.c (set_file_variables): Initialize the length counters for
  4280.     $^ and $? to zero!
  4281.  
  4282.     * commands.c (start_job): Use vfork instead of fork.  Someone else says
  4283.     the child and parent DO have separate file descriptors.
  4284.  
  4285.     * variable.c: Split internals into variable.c, function expansion into
  4286.     function.c, and variable expansion into expand.c.
  4287.     * function.c (handle_function): New function to check for a function
  4288.     invocation and expand it.
  4289.     * expand.c (variable_expand): Use handle_function.
  4290.     * variable.c (push_new_variable_scope): New function to push a new
  4291.     empty variable set onto the current setlist.
  4292.     (pop_variable_scope): New function to pop the topmost set from the
  4293.     current setlist and free its storage.
  4294.     * function.c (expand_function: `foreach'): Push a new variable scope
  4295.     for the iteration variable and pop the scope when finished.
  4296.     * variable.h: Declare new functions.
  4297.     * variable.c (initialize_variable_output): New function to return a
  4298.     pointer to the beginning of the output buffer.
  4299.     (save_variable_output): New function to save the variable output state.
  4300.     (restore_variable_output): New function to restore it.
  4301.     * expand.c (variable_expand): Use initialize_variable_output.
  4302.     (allocated_variable_expand): Use {save,restore}_variable_output.
  4303.     * variable.c (current_setlist): Renamed to current_variable_set_list
  4304.     and made global.
  4305.  
  4306. Sat Jun 10 00:11:25 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4307.  
  4308.     * remake.c (library_file_mtime): Check for libNAME.a in the current
  4309.     directory before doing VPATH search.
  4310.  
  4311.     * variable.c (print_variable_set): Don't write "# Variables", and write
  4312.     fewer blank lines.
  4313.     (print_variable_data_base): Precede the variables with "# Variables".
  4314.  
  4315.     * make.c (main): Print the data base under -p after doing everything
  4316.     else, just before exitting.  This way it gets info determined in
  4317.     updating the goal targets.
  4318.  
  4319.     * variable.c (print_variable_data_base): Split into print_variable,
  4320.     which prints one variable, and print_variable_set, which prints a set.
  4321.     Replaced with a call to print_variable_set for the global set.
  4322.     (print_file_variables): New function to print a given file's local
  4323.     variables.
  4324.  
  4325.     * file.c (print_file_data_base): Call print_file_variables to print
  4326.     each file's local variables.
  4327.  
  4328.     * commands.c (set_file_variables): Actually define the values for
  4329.     the $^ and $? variables!!!
  4330.  
  4331.     * make.texinfo (Implicit: Pattern Rules: Automatic): Document new D and
  4332.     F versions of $^ and $?.
  4333.  
  4334.     * commands.c (start_job): In the child fork, use getdtablesize and a
  4335.     loop to close all file descriptors other than 0, 1, and 2.  We need to
  4336.     do this since not only the bad stdin pipe, but also some directories,
  4337.     may be open.
  4338.  
  4339.     * commands.c (start_job): Use fork instead of vfork, because a vfork
  4340.     parent and child share file descriptors, and our child needs to diddle
  4341.     with stdin.
  4342.  
  4343.     * variable.c (initialize_file_variables): When created a new variable
  4344.     set, zero out the hash table.
  4345.  
  4346.     * variable.c (target_environment): Don't use variables whose names are
  4347.     not made up of alphanumerics and underscores.
  4348.  
  4349.     * remake.c (update_file_1): Set the `parent' member of each dependency
  4350.     to FILE before updating it.
  4351.  
  4352.     * file.h (struct file): Add `parent' member.
  4353.  
  4354.     * variable.c (initialize_file_variables): Don't take second arg PARENT.
  4355.     Use FILE->parent instead.  If FILE->parent->variables is nil, recurse
  4356.     to initialize it.
  4357.  
  4358.     * variable.h: Declare {allocated_}variable_expand_for_file.
  4359.  
  4360.     * variable.c (allocated_variable_expand): Now
  4361.     allocated_variable_expand_for_file, calling variable_expand_for_file,
  4362.     and taking second arg FILE.
  4363.     (allocated_variable_expand): New function, a wrapper around
  4364.     allocated_variable_expand_for_file, passing a nil second arg.
  4365.  
  4366. Fri Jun  9 12:11:45 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4367.  
  4368.     * commands.c (start_job): On the child side of the fork, always close
  4369.     the bad stdin file descriptor.
  4370.  
  4371.     * commands.c (struct child): New member `environment', to hold the
  4372.     environment for the child.
  4373.     (execute_file_commands): Set the new childs `environment' member to nil
  4374.     before calling start_job.
  4375.     (start_job): Set up CHILD->environment before running the commands if
  4376.     it is nil.
  4377.  
  4378.     * make.c (main): Don't call new_environ.  `shell' functions will now be
  4379.     run with the environment make was called with.
  4380.  
  4381.     * commands.c (child_handler): Don't check C->command_ptr before calling
  4382.     start_job since we now have to check C->file->cmds->command_lines and
  4383.     it's easier to let start_job handle all that.
  4384.  
  4385.     * commands.c (struct child): New member `command_line', to hold an
  4386.     index into file->cmds->command_lines.
  4387.     (execute_file_commands): Set the new child's `command_line' to 0 and
  4388.     its `commands' and `commands_ptr' to nil.
  4389.     (start_job): When CHILD->command_ptr runs out, increment
  4390.     CHILD->command_line and run the corresponding line from
  4391.     CHILD->file->cmds->command_lines.  Run it even under -t, -q, or -n if
  4392.     the CHILD->file->cmds->lines_recurse element for that line is set.
  4393.  
  4394.     * commands.c (execute_file_commands): Chop CMDS up into lines, setting
  4395.     its `command_lines' and `lines_recurse' members, if it wasn't already
  4396.     chopped.
  4397.  
  4398.     * commands.h (struct commands): New members `command_lines' and
  4399.     `lines_recurse'.  The first is an array of chopped-up lines; the second
  4400.     is an array of flags, each nonzero if the corresponding line is
  4401.     recursive.
  4402.  
  4403.     * variable.c (variable_expand_for_file): If FILE is nil, just do a
  4404.     vanilla variable_expand.
  4405.     (expand_function: `shell'): Pass second arg (as nil) to
  4406.     construct_command_argv.
  4407.  
  4408.     * commands.c (construct_command_argv): Use variable_expand_for_file on
  4409.     `$(SHELL)' and `$(IFS)' instead of lookup_variable to check those
  4410.     variables.  This handles file-local and recursive values correctly.
  4411.     To support this, take an additional argument FILE.
  4412.  
  4413.     * variable.c (initialize_file_variables): New function to initialize
  4414.     FILE's variable set list from PARENT's setlist.  PARENT is the
  4415.     immediate dependent that caused FILE to be remade, or nil if FILE is a
  4416.     goal.  (When user-level per-file variables are implemented, PARENT
  4417.     should be passed as nil when defining per-file variables.)
  4418.  
  4419.     * variable.c (variable_expand_for_file): New function to expand a line
  4420.     using the variable set of a given file, and reporting error messages
  4421.     for the file and line number of that file's commands.
  4422.  
  4423.     * variable.h: Don't declare lookup_variable_for_file.
  4424.  
  4425.     * variable.c (lookup_variable_*): Turned back into lookup_variable.  It
  4426.     now uses current_setlist.
  4427.     (global_setlist): New static `struct variable_set_list', a setlist
  4428.     containing global_variable_set.
  4429.     (current_setlist): New static `struct variable_set_list *', a pointer
  4430.     to the current variable set list.
  4431.     (define_variable): Define in the current top-level set, not the global
  4432.     set.
  4433.  
  4434.     * commands.c (set_file_variables): New function to set up the automatic
  4435.     variables for a file in its own variable set.
  4436.     (execute_file_commands): Use set_file_variables.
  4437.  
  4438.     * variable.c (new_environ): Replaced with target_environment, taking an
  4439.     argument FILE, and returning an environment for FILE's commands.
  4440.  
  4441.     * variable.c, variable.h: Remove all global special variable pointers.
  4442.  
  4443.     * variable.c (define_variable_for_file): New function like
  4444.     define_variable, but takes additional arg FILE, and defines the
  4445.     variable in the variable set at the top of FILE's chain.
  4446.     (lookup_variable_for_file): New function like lookup_variable, but
  4447.     takes additional arg FILE, and looks the variable up in all of FILE's
  4448.     variable sets.
  4449.  
  4450.     * file.h (struct file): New member `variables', a `struct
  4451.     variable_set_list' containing the list of variable sets used in the
  4452.     expansion of the file's commands.
  4453.  
  4454.     * variable.c (variables): Replaced with static `struct variable_set'
  4455.     global_variable_set.
  4456.     (define_variable): Now define_variable_in_set, taking additional
  4457.     argument SET, the `struct variable_set' to define it in.
  4458.     (define_variable): Use define_variable_in_set with global_variable_set.
  4459.     (lookup_variable): Now lookup_variable_in_set, taking additional
  4460.     argument SET, the `struct variable_set' to look it up in.
  4461.     (lookup_variable): Use lookup_variable_in_set with global_variable_set.
  4462.     (lookup_variable_in_setlist): New function to look up a variable in a
  4463.     `struct variable_set_list' using lookup_variable_in_set.
  4464.  
  4465.     * variable.h (struct variable_set): New structure, containing a hash
  4466.     table and the number of hash buckets.
  4467.     (struct variable_set_list): New structure, containing a link for a
  4468.     linked-list, and a `struct variable_set'.
  4469.  
  4470.     * commands.c (start_job): Under -n, return what the recursive start_job
  4471.     call returns, since it might actually start a child.
  4472.  
  4473.     * make.texinfo (Rules: Wildcards): Document ~ and ~USER expansion.
  4474.  
  4475.     * commands.c (execute_file_commands): If start_job returns
  4476.     failure, but -t is set, set FILE->update_status to success.
  4477.     (start_job): If -t is set, and the commands are not recursive, return
  4478.     failure (is is done for -q).
  4479.  
  4480.     * remake.c (touch_file): New function to touch FILE.
  4481.     (remake_file): Use touch_file.  When touching a file, still do
  4482.     execute_file_commands.
  4483.  
  4484.     * remake.c (remake_file): Don't check question_flag (-q), since we
  4485.     can't know here if the commands are recursive.
  4486.  
  4487.     * commands.c (start_job): Don't use the `recursive' member of
  4488.     CHILD->file->cmds.  Instead, check for leading +s and $(MAKE) or
  4489.     ${MAKE} in the command line here.
  4490.  
  4491.     * commands.h (struct commands): Remove `recursive' member.
  4492.  
  4493.     * rule.c (install_default_pattern_rules): Remove use of `recursive'
  4494.     member.
  4495.  
  4496.     * read.c (record_files): Don't check commands from $(MAKE) and set
  4497.     their `recursive' member.
  4498.  
  4499.     * commands.c (fatal_error_signal): Treat SIGQUIT like SIGINT, SIGHUP,
  4500.     and SIGTERM, but don't send it to ourselves because it will cause a
  4501.     core dump.
  4502.  
  4503. Thu Jun  8 20:30:04 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4504.  
  4505.     * Version 3.50.
  4506.  
  4507.     * variable.c (variable_expand): Use allocated_variable_expand instead
  4508.     of expand_argument in a few places.
  4509.  
  4510.     * variable.c (allocated_variable_expand): Do static variable shuffling
  4511.     here instead of using expand_argument.
  4512.     (expand_argument): Use allocated_variable_expand.
  4513.  
  4514.     * variable.c (recursively_expand): New function to recursively expand
  4515.     its argument (a `struct variable'), returning the malloc'd value.
  4516.     (variable_expand): Use recursively_expand.
  4517.  
  4518. Sun May 28 12:49:27 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4519.  
  4520.     * make.c (main): Fixed buggy fix in deciding to increase space for
  4521.     command-line variable definitions.  (First it never did it, then it
  4522.     always did it; now it does it when necessary.)
  4523.  
  4524. Sat May 27 14:01:54 1989  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  4525.  
  4526.     * make.c (main): Fixed bug in deciding to increase space for
  4527.     command-line variable definitions.
  4528.  
  4529. Fri May 26 15:48:01 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4530.  
  4531.     * read.c (multi_glob): Use allocated_expand_variable for checking
  4532.     `HOME' variable for ~ expansion, since this may be called from inside a
  4533.     `wildcard' function expansion.
  4534.  
  4535.     * variable.h: Declare allocated_expand_variable.
  4536.  
  4537.     * variable.c (allocated_expand_variable): New function to do variable
  4538.     expansion in an allocated buffer, rather than the static one.
  4539.  
  4540.     * make.c (main): Don't set glob_tilde (it no longer exists).
  4541.  
  4542.     * variable.c (string_glob): Use multi_glob and parse_file_seq.
  4543.  
  4544.     * read.c (multi_glob): Do ~ expansion here.
  4545.  
  4546.     * glob.c (glob_tilde, glob_filename): Removed ~ expansion.
  4547.  
  4548.     * variable.c (define_variable, lookup_variable): Use a smarter hashing
  4549.     algorithm (the same one used for files and directories).
  4550.     (VARIABLE_BUCKETS): Increased to 523.
  4551.  
  4552.     * file.c (enter_file, lookup_file, rename_file): Use a smarter hashing
  4553.     algorithm, spreading the bits about somewhat.
  4554.  
  4555.     * make.c (log_working_directory): Under `-p', precede the directory
  4556.     message with a `#'.
  4557.  
  4558.     * make.c (print_version): Under `-p', precede each line with a `#'.
  4559.     (print_data_base): Precede the header line with a `#' and include the
  4560.     date and time on it.
  4561.  
  4562.     * vpath.c (print_vpath_data_base): Precede non-directive
  4563.     lines with `#'s.
  4564.  
  4565.     * commands.c (print_commands): Precede the non-command line with a `#'.
  4566.  
  4567.     * rule.c (print_rule_data_base), file.c (print_file_data_base): Precede
  4568.     non-rule lines with `#'s.
  4569.  
  4570.     * dir.c (print_dir_data_base): Precede all lines with `#'s.
  4571.  
  4572.     * variable.c (print_variable_data_base): Changed format so that it can
  4573.     be makefile input.  Lines that are not variable definitions are
  4574.     preceded with `#'.  Nonrecursive variable definitions are made with all
  4575.     dollar signs doubled to reproduce the initial value.  Recursive
  4576.     variable definitions containing newlines are done with `define'
  4577.     directives.  Nonrecursive variable definitions containing newlines, and
  4578.     variable names containing :, =, or newlines, will come out garbled.
  4579.  
  4580. Wed May 24 00:20:04 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4581.  
  4582.     * Version 3.49.
  4583.  
  4584. Tue May 23 19:18:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4585.  
  4586.     * variable.c (expand_function: `filter'/`filter-out'): Use
  4587.     find_percent instead of pattern_p.
  4588.  
  4589.     * variable.c (expand_function: `patsubst'): Pass new args (both nil)
  4590.     to patsubst_expand.
  4591.     (variable_expand): For $(var:pat%=rep%) references, pass new args to
  4592.     patsubst_expand so as to avoid find_percent and thus disallow
  4593.     quoting the %s.
  4594.  
  4595.     * read.c (record_files): Pass new args to patsubst_expand.
  4596.  
  4597.     * variable.c (patsubst_expand): Take two new args: PATTERN_PERCENT
  4598.     and REPLACE_PERCENT.  Each of these, if non-nil, means that PATTERN
  4599.     (or REPLACE) has already been run through find_percent, and
  4600.     PATTERN_PERCENT (or REPLACE_PERCENT) is the result.
  4601.  
  4602.     * make.h: Declare find_percent instead of pattern_p.
  4603.  
  4604.     * read.c (pattern_p): Changed to find_percent, returning a pointer
  4605.     to the %, or nil if there is none.
  4606.     (record_files): Take another arg, PATTERN_PERCENT, a pointer to the
  4607.     % in PATTERN.
  4608.     (read_makefile): Pass PATTERN_PERCENT to record_files.
  4609.  
  4610.     * make.texinfo (Rules: Static Pattern: Static Usage,
  4611.     Rules: Directory Search: Selective Search,
  4612.     Functions: Text Functions): Documented that `%' can be quoted.
  4613.  
  4614.     * variable.c (expand_function: `filter'/`filter-out'): Use pattern_p
  4615.     to allow quoted %s in patterns.
  4616.  
  4617.     * variable.c (patsubst_expand): Use pattern_p on PATTERN and REPLACE
  4618.     to allow quoted %s.  Quoting backslashes are removed from REPLACE
  4619.     even if PATTERN contains no unquoted %.
  4620.  
  4621.     * read.c (pattern_p): Made global.
  4622.     * make.h: Declare pattern_p.
  4623.  
  4624.     * read.c (pattern_p): New function to search for an unquoted % in a
  4625.     string.  Backslashes quote %s and backslashes.  Quoting backslashes
  4626.     are removed from the string by compacting it into itself.  Returns
  4627.     nonzero if an unquoted % was found, zero if not.
  4628.     (record_files): Use pattern_p to check for implicit rules.
  4629.     (read_makefile): Use pattern_p to check for static pattern rules.
  4630.     Also use it to allow quoted %s in `vpath' patterns; warn about
  4631.     `vpath' patterns with no %s.
  4632.  
  4633. Mon May 22 16:31:52 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4634.  
  4635.     * glob.c (glob_filename): Replace a `1' with the `l' that should
  4636.     have been there.  This incidentally stops it from dumping core.
  4637.  
  4638.     * glob.c (glob_filename): If the path is just a directory, with no
  4639.     file name pattern, return the directory alone.
  4640.  
  4641.     * glob.c (glob_tilde): New global variable (int), defaults to zero.
  4642.     (glob_filename): If glob_tilde is nonzero, expand ~ or ~USER.
  4643.  
  4644.     * variable.c (string_glob): Keep a static allocated buffer for file
  4645.     names taken from the list, instead of allocating and freeing one
  4646.     every time.
  4647.  
  4648. Fri May 19 18:06:26 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4649.  
  4650.     * make.c (decode_switches): Get floating numbers from the right string.
  4651.  
  4652. Sun May 14 13:48:04 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  4653.  
  4654.     * commands.c (delete_child_targets): When deleting `also_make'
  4655.     files, include the target's name in the message:
  4656.         make: *** [foo] Deleting file `bar'
  4657.  
  4658. Sat May 13 17:34:26 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  4659.  
  4660.     * make.c (max_load_average, default_load_average): Default to -1.
  4661.  
  4662.     * load.c (wait_to_start_job): Return if max_load_average is < 0.0,
  4663.     not equal.
  4664.  
  4665. Fri May 12 16:08:05 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  4666.  
  4667.     * variable.c (variable_buffer_output): Don't try to do pointer
  4668.     arithmetic between objects not in the same array.
  4669.  
  4670. Wed May 10 15:55:29 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4671.  
  4672.     * rule.c [M_XENIX] (default_suffix_rules, default_variables): Minor
  4673.     changes to allow for strange compiler syntax.
  4674.  
  4675.     * rule.c (default_variables): Don't include "> $@" in
  4676.     $(PREPROCESS.S), since it's already in the .S.s rule.
  4677.  
  4678.     * file.c (enter_file): Make a new double-colon file the `prev'
  4679.     member of the bottom `prev' file (the one whose `prev' is nil).
  4680.  
  4681.     * read.c (do_define): Append newlines after copying the lines into
  4682.     the value buffer, so we end up with a trailing newline.
  4683.  
  4684.     * make.c (print_version): If the global variable
  4685.     `remote_description' is not nil or "", append "-%s" (its value) to
  4686.     the version number.
  4687.     * remote-*.c: Define remote_description appropriately.
  4688.  
  4689. Sun May  7 15:15:53 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4690.  
  4691.     * commands.c (error_status): Converted to new function child_error,
  4692.     taking new arguments TARGET_NAME and IGNORED, and writing an error
  4693.     message: "*** [target] Error 1" (or signal #, etc.), appending
  4694.     " (ignored)" if IGNORED is nonzero.
  4695.     (child_handler): Use child_error instead of error_status.
  4696.  
  4697.     * compatMakefile (all): Don't depend on `doc'.
  4698.  
  4699.     * compatMakefile (clean): Don't remove make-info*.
  4700.     (realclean): New rule, depends on `clean', removes tags, TAGS,
  4701.     and all Info and TeX files.
  4702.  
  4703. Thu May  4 17:00:46 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4704.  
  4705.     * variable.c (print_variable_data_base), file.c
  4706.     (print_file_data_base), rule.c (print_rule_data_base),
  4707.     Use floating-point for averages and percentages.
  4708.  
  4709.     * make.c (print_data_base): Print messages before and after the data
  4710.     base information.
  4711.  
  4712.     * commands.c (print_commands): Changed output format to separate
  4713.     lines in commands and prefix them with tabs.
  4714.  
  4715.     * dir.c (print_dir_data_base): Changed output format slightly.
  4716.  
  4717.     * vpath.c (struct vpath, construct_vpath_list,
  4718.     selective_vpath_search): Remove the `exists' member and its uses.
  4719.  
  4720.     * vpath.c (print_vpath_data_base): New function to print all
  4721.     selective and general VPATH search paths (for -p).
  4722.  
  4723.     * make.c (print_data_base): Call print_vpath_data_base.
  4724.  
  4725.     * file.c (print_file_data_base): Changed format to look more like a
  4726.     makefile rule.  Now reports all information in the `struct file'.
  4727.  
  4728.     * rule.c (print_rule_data_base): Changed format of display from:
  4729.       %: (terminal)
  4730.        depends on: RCS/%,v
  4731.     to:
  4732.       %: RCS/%,v
  4733.         is terminal.
  4734.         references nonexistent subdirectory.
  4735.     Also include number and percent that refer to nonexistent
  4736.     subdirectories.
  4737.  
  4738. Thu Apr 27 15:45:40 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4739.  
  4740.     * make.c (main): Figure out the level of recursion before writing
  4741.     the `Entering directory' message.
  4742.     * variable.c (define_automatic_variables): Don't figure out the
  4743.     level of recursion from `MAKELEVEL'.  It's now done in main.
  4744.  
  4745.     * Version 3.48.
  4746.  
  4747. Wed Apr 26 16:39:17 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4748.  
  4749.     * commands.c (child_handler): Set `update_status' to zero when there
  4750.     are no more commands.
  4751.  
  4752.     * make.c (log_working_directory): If MAKELEVEL > 0, indicate the
  4753.     recurson in the message (make[1]: ...).
  4754.  
  4755.     * commands.c (child_handler): Change status to `cs_finished' when
  4756.     commands fail.
  4757.  
  4758.     * commands.c (start_job): Return 0 (success) if there were no more
  4759.     commands for the child.
  4760.     (child_handler): Change the status to `cs_finished' when start_job
  4761.     fails to start the commands.
  4762.  
  4763.     * make.c (main): Don't handle SIGEMT if it's not defined.
  4764.     Do handle SIGDANGER if it is defined.
  4765.  
  4766.     * commands.c (child_handler): Reorganized inner loop so that it
  4767.     doesn't try to inspect the child before finding it.
  4768.  
  4769. Tue Apr 25 16:28:24 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4770.  
  4771.     * make.c (end_of_token): Fixed bug wherein backslashes caused
  4772.     immediate return.
  4773.  
  4774.     * Version 3.47.
  4775.  
  4776.     * make.texinfo (Implicit: Pattern Rules: Automatic): Document
  4777.     setting of `$*' for explicit rules.  Add note clarifying that
  4778.     automatic variables, though referred to in the documentation as
  4779.     `$<', etc. are no different than `$(<)', etc.
  4780.  
  4781. Fri Apr 21 18:00:12 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4782.  
  4783.     * file.c (enter_file): Don't strip leading `./'s.
  4784.  
  4785.     * read.c (parse_file_seq): Strip leading `./'s.
  4786.  
  4787. Thu Apr 13 17:26:41 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4788.  
  4789.     * make.texinfo (Commands: Parallel, Running: Options): Document that
  4790.     -l with no argument removes a previous load limit.
  4791.  
  4792.     * make.c (struct command_switch): New member `default_value'.
  4793.     (default_job_slots): Default value (of 1) for -j.
  4794.     (default_load_average): Default value (of 0, unlimited) for -l.
  4795.     (command_switches): Use default values for -j and -l.
  4796.     Also, -l without an arg now means no load limit.
  4797.     (define_makeflags): Don't write positive_int or floating options
  4798.     whose values are their defaults.
  4799.  
  4800.     * make.c (main): Under -w, write a `Leaving directory' message
  4801.     before re-execing.
  4802.  
  4803. Tue Apr 11 16:46:29 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4804.  
  4805.     * Version 3.46.
  4806.  
  4807.     * Makefile: Provide an easy place for system-specific definitions
  4808.     (-DUSG, etc.) and extra object files (for whatever).
  4809.  
  4810.     * make.texinfo: Miscellaneous fixes from RMS.
  4811.  
  4812. Mon Apr 10 19:31:34 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4813.  
  4814.     * rule.c (pattern_search): Put rules with `subdir' flags set in
  4815.     TRYRULES, since these might be valid with VPATHs.  In the TRYRULES
  4816.     loop, don't do lookup_file or file_exists_p calls for dependencies
  4817.     of rules with `subdir' flags set, but still do vpath_search calls
  4818.     and intermediate-file searches.
  4819.  
  4820. Thu Apr  6 16:33:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4821.  
  4822.     * make.texinfo (Implicit: Pattern Rules: Automatic): Document the
  4823.     new definition of $* for explicit rules.
  4824.  
  4825.     * commands.c (execute_file_commands): If FILE->stem is nil, figure
  4826.     out if FILE->name ends in a suffix in the .SUFFIXES list; if so,
  4827.     store the name sans suffix in FILE->stem (and $*).
  4828.  
  4829. Wed Apr  5 15:24:48 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  4830.  
  4831.     * file.c (remove_intermediates): Don't use `file_exists_p' to check
  4832.     for the existence of intermediate files, because the hashed
  4833.     directories will probably be out of date.
  4834.  
  4835.     * commands.c (child_handler): Free the good stdin before running the
  4836.     next command line.
  4837.  
  4838.     * commands.c [USG] (init_siglist): Don't case SIGEMT if it's not
  4839.     defined.  Do case SIGDANGER (for IBM RT) if it is defined.
  4840.  
  4841.     * commands.c: Changed `SYS_WAIT' to `HAVE_SYS_WAIT'.
  4842.     (child_handler): Use `wait3' if HAVE_SYS_WAIT is #defined.
  4843.  
  4844.     * file.c (enter_file): If any `./'s are stripped off, allocate a new
  4845.     copy of the shortened name.
  4846.  
  4847.     * rule.c (pattern_search): Allocate the right length strings for
  4848.     `also_make' members.
  4849.  
  4850. Sat Apr  1 13:28:38 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4851.  
  4852.     * Version 3.45.
  4853.  
  4854.     * GNUmakefile: Make a separate tarfile of the DVI and info files.
  4855.  
  4856.     * make.c (define_makeflags): If a switch that takes an argument has
  4857.     its default value, put the switch in MAKEFLAGS with no arguments.
  4858.  
  4859.     * make.c (command_switches): Pass `-l' in MAKEFLAGS.
  4860.  
  4861. Wed Mar 29 17:50:05 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4862.  
  4863.     * GNUmakefile: Don't include the DVI and info files in the dist.
  4864.  
  4865.     * commands.c (child_handler): Don't call
  4866.     check_changed_{directories,vpaths}.
  4867.  
  4868.     * make.h: Don't declare check_changed_{directories,vpaths}.
  4869.  
  4870.     * vpath.c (check_changed_vpaths): Removed this function.
  4871.  
  4872.     * dir.c (struct directory): Remove `modtime' member.
  4873.     (find_directory): Don't set `modtime' member.
  4874.     (check_changed_directories): Removed this function.
  4875.  
  4876.     * remake.c (update_file_1): Set FILE->command_state to cs_finished
  4877.     if it didn't need to be remade.
  4878.  
  4879.     * remake.c (update_file): Only write the "up to date" message if the
  4880.     target went from `not_started' state to `finished' state without
  4881.     incrementing the count of files remade.
  4882.  
  4883.     * commands.c [USG] (init_siglist): If both SIGCHLD and SIGCLD are
  4884.     defined, don't put them both in the `switch'.
  4885.  
  4886. Tue Mar 28 15:37:02 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4887.  
  4888.     * file.c (rename_file): Change FILE's name!!!
  4889.  
  4890.     * rule.c (create_pattern_rule): Set the `terminal' member of the new
  4891.     rule after calling new_pattern_rule, which zeros it.
  4892.  
  4893.     * rule.c (default_variables): Use $(C++) in $(COMPILE.cc)!
  4894.  
  4895. Sun Mar 26 15:52:30 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4896.  
  4897.     * Makefile: Added a `clean' target.
  4898.  
  4899. Fri Mar 24 15:08:46 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  4900.  
  4901.     * Version 3.44.
  4902.  
  4903.     * file.c (rename_file): If a `struct file' for the renamed-to name
  4904.     exists, and it is a target or has deps or commands, barf.
  4905.     If not just remove the old one for put in the new one.
  4906.  
  4907.     * remake.c (update_file_1, check_dep): Changed it back so that equal
  4908.     modtimes to NOT make dependencies be considered newer.  RCS checks
  4909.     out files with equal modtimes as the RCS files, so this screws it.
  4910.  
  4911.     * make.h, glob.c: If __GNUC__ is defined, use __builtin_alloca.
  4912.  
  4913.     * Makefile: Use variables `ALLOCA' and `ALLOCASRC' so systems
  4914.     without a good standard alloca can get it from the Emacs
  4915.     distribution (or somewhere).
  4916.  
  4917.     * dir.c: Don't include <sys/stat.h>, since make.h does.
  4918.  
  4919.     * make.c: Removed debugging version of getwd.
  4920.  
  4921. Thu Mar 23 16:16:27 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4922.  
  4923.     * Version 3.43.
  4924.  
  4925.     * remake.c (update_file_1): If a dependency loop is found, don't
  4926.     fatal.  Emit an error message and remove the dependency.
  4927.  
  4928.     * remake.c (library_file_mtime): Fixed to use the right names.
  4929.     (update_file_1, check_dep): Consider a dependency "newer" than its
  4930.     dependent if they have the same modification time.
  4931.  
  4932. Wed Mar 22 19:31:35 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4933.  
  4934.     * file.c (remove_intermediates): Don't try to remove nonexistent files.
  4935.  
  4936. Mon Mar 20 10:21:22 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4937.  
  4938.     * Version 3.42.
  4939.  
  4940.     * rule.c (default_variables): Set F77 to $(FC) and F77FLAGS to
  4941.     $(FFLAGS) so explicit rules expecting these (which are in System V)
  4942.     will work.  However, there is no way to make setting these affect
  4943.     the implicit rules, unless we trash FC and FFLAGS (which BSD uses).
  4944.     [USG]: Set GET to `get' rather than `/usr/sccs/get'.
  4945.  
  4946. Sun Mar 19 20:00:27 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4947.  
  4948.     * vpath.c (construct_vpath_list): Don't replace VPATH[ELEM] with
  4949.     dir_name (V), because the latter may get freed.
  4950.  
  4951. Sat Mar 18 15:01:39 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  4952.  
  4953.     * Version 3.41.
  4954.  
  4955.     * make.texinfo: Cleaned-up edition 0.1 Beta from RMS and Bob Chassell.
  4956.  
  4957.     * file.c (rename_file): If a file with the new name already existed,
  4958.     use the same storage space, after freeing the old file's name, deps,
  4959.     and `also_make' member, preserving the link in the chain.
  4960.     Also write an error message telling the user to report the incident;
  4961.     I don't think this should be able to happen, but I'm not sure.
  4962.  
  4963.     * file.c (rename_file): Don't add the hash values of the old and new
  4964.     names together!  Reset HASHVAL before computing the second value.
  4965.  
  4966.     * dir.c (check_changed_directories): Zero the new file hash table
  4967.     after allocating it.
  4968.  
  4969.     * dir.c (dir_file_exists_p): If FILENAME is "", return 1 if the
  4970.     directory exists.
  4971.  
  4972.     * vpath.c (check_changed_vpaths): New function to run through the
  4973.     search paths of all VPATHs, making the `exists' members correspond
  4974.     to reality.
  4975.  
  4976.     * commands.c (child_handler): Call check_changed_vpaths.
  4977.  
  4978.     * make.h: Declare check_changed_vpaths.
  4979.  
  4980.     * vpath.c (struct vpath): New element `exists', an array of char
  4981.     flags; exists[N] is nonzero if searchpath[N] exists.
  4982.     (construct_vpath_list): Set the `exists' member.
  4983.     (selective_vpath_search): Don't search directories whose `exists'
  4984.     elements are zero.
  4985.  
  4986.     * read.c (read_makefile): Set the `dontcare' flag of makefiles
  4987.     from the MAKEFILES variable if they were not mentioned anywhere but
  4988.     in the MAKEFILES variable.
  4989.  
  4990.     * read.c (read_makefile): Don't write an error message if fopen
  4991.     fails for a makefile from the MAKEFILES variable.
  4992.  
  4993.     * dir.c (struct directory): Add `modtime' member to record the
  4994.     modification time of the directory when it was opened.
  4995.     (check_changed_directories): New function to check all known
  4996.     directories; if their modtimes have changed since they were opened,
  4997.     their file tables are cleared and they are reset to be read in.
  4998.  
  4999.     * commands.c (child_handler): Call check_changed_directories before
  5000.     returning.
  5001.     make.h: Declare check_changed_directories.
  5002.  
  5003. Tue Mar 14 20:07:13 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5004.  
  5005.     * Version 3.40.
  5006.  
  5007.     * make.c (print_version): Made the copyright say 1988, 1989.
  5008.  
  5009.     * read.c (read_all_makefiles): Don't set *MAKEFILES to the name of
  5010.     the end of the read_makefiles chain, since the latter may be from an
  5011.     included makefile.  (Why did I do this before?)
  5012.  
  5013.     * make.c (main): Set argv[0] to "" if it was nil.  Don't put the
  5014.     command-line variable definitions into argv[0], only into the MAKE
  5015.     variable!
  5016.  
  5017. Sun Mar  5 20:44:08 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5018.  
  5019.     * ar.c (ar_member_date, ar_touch): Remove the trailing ) from the
  5020.     member name.
  5021.  
  5022. Fri Mar  3 18:15:15 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5023.  
  5024.     * commands.c (construct_command_argv): Initialize NEW_ARGV to 0.  At
  5025.     `slow' label, if NEW_ARGV is not 0, free it; then allocate 4 strings.
  5026.  
  5027. Tue Feb 28 14:29:39 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5028.  
  5029.     * Version 3.39.
  5030.  
  5031.     * COPYING, make.texinfo: New GNU General Public License, version 1.
  5032.  
  5033.     * *.c, *.h, Makefile: New copyright notices for the new GNU General
  5034.     Public License, version 1.
  5035.  
  5036.     * commands.c [USG]: Define WRETCODE correctly (again).
  5037.  
  5038.     * variable.c (expand_function: `shell'): Don't capture the standard
  5039.     error output of the shell command.
  5040.  
  5041.     * ar.c (ar_touch, ar_member_date): Allocate MEMNAME with the right
  5042.     length.
  5043.  
  5044.     * load.c [not UMAX] (load_average): Don't clobber the first nlist
  5045.     member when trying to set the second!
  5046.  
  5047. Thu Feb 23 13:13:53 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  5048.  
  5049.     * commands.c (child_handler): Really ignore errors under -i and for
  5050.     - lines, don't just print a different message.
  5051.  
  5052.     * make.c (decode_switches): Fixed handling of arguments (or lack
  5053.     thereof) to switches.
  5054.  
  5055. Wed Feb 22 16:25:39 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  5056.  
  5057.     * commands.c (construct_command_argv): Don't clobber LINE when
  5058.     checking the IFS variable.
  5059.  
  5060. Sun Feb 19 11:17:07 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5061.  
  5062.     * load.c [UMAX, not NO_LDAV] (load_average): Return 0.0 rather than
  5063.     randomness when calls fail.
  5064.  
  5065.     * Version 3.38.
  5066.  
  5067.     * commands.c (fatal_error_signal): If handling a user kill signal
  5068.     (TERM, INT, HUP), wait for the children without printing the
  5069.     "Waiting for children" message, since they will die quickly.
  5070.  
  5071.     * Version 3.37.
  5072.  
  5073.     * remote-stub.c (remote_status): Take another arg, BLOCK.  If this
  5074.     is nonzero block waiting for remote children.  If not, return 0 if
  5075.     we would have to block.
  5076.  
  5077.     * commands.c (child_handler) [not USG]: If called as a signal
  5078.     handler, use wait3 and don't block.
  5079.     [USG]: If called as a signal handler, return after handling one child.
  5080.  
  5081. Sat Feb 18 13:37:04 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5082.  
  5083.     * file.c (snap_deps): Process all double-colon entries of each file,
  5084.     not just the first one.
  5085.  
  5086.     * Version 3.36.
  5087.  
  5088.     * remote-stub.c: remote.c renamed.
  5089.     remote.c: Just include remote-stub.c
  5090.  
  5091.     * commands.c (child_handler): If we were called as a signal handler,
  5092.     return after handling one child.
  5093.  
  5094.     * commands.c [not USG]: Include <signal.h> and define `sigmask' if
  5095.     <signal.h> doesn't.
  5096.     (block_children, unblock_children): Use sigmask rather than
  5097.     bitshifting explicitly (and incorrectly).
  5098.  
  5099.     * remote.c (remote_kill): New function to send a signal to a
  5100.     remote child.
  5101.  
  5102.     * commands.c (fatal_error_signal): If we get a SIGTERM, send one to
  5103.     each living child.  If we get a SIGTERM, SIGINT, or SIGHUP, delete
  5104.     all pending targets before waiting for children.
  5105.     (struct child): Add new member `deleted'.
  5106.     (start_job): Initialize `deleted' member to 0.
  5107.     (delete_child_targets): New function to delete a given child's
  5108.     targets, unless the `deleted' flag in the `struct child' says they
  5109.     have already been deleted.  Sets this flag before returning.
  5110.  
  5111. Thu Feb 16 18:32:07 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5112.  
  5113.     * commands.c [USG]: Define `WRETCODE' correctly (X & 0xff00).
  5114.  
  5115. Tue Feb 14 16:05:00 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5116.  
  5117.     * commands.c (construct_command_argv): Don't make the 0th element of
  5118.     the argument list be "sh" when executing /bin/sh, because start_job
  5119.     uses the 0th element as the program name.
  5120.  
  5121. Sun Feb 12 17:42:05 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5122.  
  5123.     * Version 3.35.
  5124.  
  5125.     * read.c (readline): Put a null in the beginning of the buffer
  5126.     before starting the reading loop.
  5127.  
  5128.     * read.c (read_makefile): Made main reading loop while
  5129.     !feof (infile), and removed EOF check after calling readline.
  5130.  
  5131. Sun Feb  5 19:52:38 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5132.  
  5133.     * remote.c (block_remote_children, unblock_remote_children): New
  5134.     (stub) functions to block and restore asynchronous notification of
  5135.     remote child death.
  5136.  
  5137.     * commands.c (block_children): Call block_remote_children.
  5138.     (unblock_children): Call unblock_remote_children.
  5139.     (child_handler): If called as a signal handler, block remote
  5140.     children on entry and unblock them before returning.
  5141.  
  5142.     * commands.c (child_handler): For unknown children, if they are
  5143.     remote, give their remote ID; if local, give their PID and make's.
  5144.  
  5145.     * commands.c (execute_file_command): Don't put a new child in the
  5146.     chain unless start_job succeeds.  Block children before calling
  5147.     start_job, and unblock them after putting the child in the chain and
  5148.     incrementing `job_slots_used' (if start_job succeeded).
  5149.  
  5150.     * commands.c (block_children, unblock_children): Make these globally
  5151.     visible (not `static').
  5152.     commands.h: Declare block_children and unblock_children.
  5153.  
  5154.     * variable.c (expand_function: `shell'): Use
  5155.     `shell_function_completed'.  Block children before forking and
  5156.     unblock after `shell_function_pid' is set properly and
  5157.     `shell_functon_completed' is reset to 0.
  5158.  
  5159.     * commands.c (child_handler): When the child of the `shell' function
  5160.     completes, set `shell_function_completed' to 1 if it actually ran,
  5161.     or -1 if it didn't (due to fork or exec failure).
  5162.  
  5163.     * commands.c (block_children, unblock_children): New functions to
  5164.     block and unblock the child termination signal.
  5165.     (wait_for_children): Use block_children and unblock_children.
  5166.     (execute_file_commands): Block children around the critical section
  5167.     wherein a new child is put on the chain.
  5168.  
  5169.     * make.c (main): Change the environment to contain the correct
  5170.     MAKELEVEL before re-execing.
  5171.  
  5172. Sat Feb  4 18:28:48 1989  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5173.  
  5174.     * Version 3.34.
  5175.  
  5176. Fri Feb  3 16:36:49 1989  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  5177.  
  5178.     * rule.c (default_variables): Fixed $(LINK.c).
  5179.  
  5180. Wed Feb  1 18:05:07 1989  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  5181.  
  5182.     * Version 3.33.
  5183.  
  5184.     * version.c: Removed copyright notice, since this is a one-line file.
  5185.  
  5186.     * commands.c (error_status): Made it return BUF, rather than running
  5187.     off the end (this apparently worked on Sun 3s for some reason).
  5188.  
  5189.     * ar.c, commands.c, dep.h, load.c, make.c, make.h, read.c, remake.c,
  5190.     rule.c, variable.c, Makefile: Changed copyrght notices to cover 1989.
  5191.  
  5192. Mon Jan 30 15:51:28 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  5193.  
  5194.     * Version 3.32.
  5195.  
  5196. Fri Jan 27 20:09:24 1989  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  5197.  
  5198.     * remake.c (remake_file): Don't touch phony targets.
  5199.  
  5200.     * rule.c (convert_to_pattern): Fixed an incorrect length passed to
  5201.     savestring.
  5202.  
  5203.     * variable.c (expand_function: `shell'): Close the read side of the
  5204.     pipe on the parent side of the fork.
  5205.  
  5206.     * commands.c (start_job): On the child of the fork, close the
  5207.     BAD_STDIN fd if we're not using it.
  5208.  
  5209.     * read.c (record_files): A file beginning with a dot can be a
  5210.     default target if it also contains a slash (as in `../foo').
  5211.  
  5212.     * commands.c (wait_for_children): For BSD, block SIGCHLD rather than
  5213.     ignoring it to avoid a race condition when child_handler is returning.
  5214.  
  5215.     * commands.c (child_handler): Do blocking waits.
  5216.     (error_status): Return a string describing exit status.  (Split out
  5217.     of child_handler).
  5218.  
  5219.     * read.c (multi_glob): Change VECTOR to VEC for Alliant.
  5220.  
  5221. Thu Jan  5 00:06:51 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  5222.  
  5223.     * Version 3.31.
  5224.  
  5225.     * make.texinfo (Features): Noted $(foo:PAT=SUB) from SunOS 4.0.
  5226.  
  5227.     * make.texinfo (Options/Recursion): -d and -p go in the environment.
  5228.  
  5229.     * load.c: Include "commands.h".
  5230.  
  5231. Wed Jan  4 17:49:25 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  5232.  
  5233.     * make.c (switches): -d and -p can come from the environment and are
  5234.     put into it.
  5235.  
  5236.     * read.c (record_files): Fixed the checking for duplicate deps so it
  5237.     doesn't clobber the first one.
  5238.  
  5239.     * make.texinfo: Documented default implicit rule changes.
  5240.  
  5241.     * rule.c: Revamped default suffix rules.  They now use Sun's style
  5242.     of using variables `COMPILE.c', `LINK.c', etc. for each suffix, and
  5243.     use `TARGET_ARCH' and `TARGET_MACH' variable where appropriate.
  5244.     Also support Modula-2 compilation (suffixes .sym, .def, and .mod).
  5245.     Ratfor Yacc support is gone, since nobody has yacc -r.
  5246.     All EFL support is gone, since nobody uses EFL.
  5247.  
  5248.     * ar.c, arscan.c: Don't assume `long int' and `int' are the same.
  5249.  
  5250.     * commands.c [USG]: Fixed wait status bit encoding.
  5251.     [USG and not USGr3] (dup2): Define this for SysVr2.
  5252.  
  5253.     * make.h, dep.h, make.c [iAPX286]: Make allowances for this
  5254.     brain-damaged compiler.
  5255.  
  5256.     * make.texinfo (Variables: Flavors): Fixed a typo.
  5257.  
  5258. Tue Jan  3 18:09:31 1989  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  5259.  
  5260.     * ar.c (ar_member_date, ar_touch): Truncate member names to 15 chars.
  5261.  
  5262.     * Version 3.30.
  5263.  
  5264.     * commands.c [SYS_WAIT]: If this is defined, use BSD <sys/wait.h>
  5265.     and wait3 even if USG.
  5266.  
  5267.     * read.c (record_files): Defining .DEFAULT with no deps or commands
  5268.     clears its commands.
  5269.  
  5270.     * rule.c (default_suffixes): Added `.sh'.
  5271.     (default_suffix_rules): Added single-suffix .sh rule, copies source
  5272.     to target and makes target executable.
  5273.     make.texinfo (Catalogue of Rules): Documented .sh rule and its use
  5274.     in conjunction with SCCS.
  5275.  
  5276.     * rule.c (set_default_suffixes): Define variable `SUFFIXES' to the
  5277.     default list ("" under -r).
  5278.     make.texinfo (Suffix Rules): Document `SUFFIXES' variable.
  5279.  
  5280.     * rule.c (default_variables), make.texinfo (Implicit Variables):
  5281.     Variable AR defaults to `ar', ARFLAGS to `rv', and RM to `rm -f'.
  5282.  
  5283.     * rule.c (install_default_pattern_rules): Default variables are made
  5284.     recursive.
  5285.     (default_variables): Added "CPP", defined to "$(CC) -E".
  5286.     (default_suffixes): Added `.S', before `.s'.
  5287.     (default_suffix_rules): New rule for .S to .s, runs CPP.
  5288.     All rules that use CPP now include "$(CPPFLAGS)".
  5289.     make.texinfo (Catalogue of Implicit Rules, Implicit Variables):
  5290.     Documented above changes.
  5291.  
  5292.     * commands.c [USG] (sys_siglist): Don't define.
  5293.     [USG] (init_siglist): New function to initialize sys_siglist.
  5294.  
  5295.     * make.texinfo (Variables: Reference): Documented `$(foo:PAT=SUB)'
  5296.     references.
  5297.  
  5298.     * variable.c (variable_expand): A reference `$(foo:PAT=SUB)' is
  5299.     equivalent to `$(patsubst PAT,SUB,$(foo))'.
  5300.  
  5301.     * variable.c (variable_expand): Free the storage for the expansion
  5302.     of a recursive variable when it is nod longer needed.
  5303.  
  5304.     * variable.c (variable_expand): When checking for `$($(foo))', use
  5305.     lindex so as not to search for the second `$' outside the parens.
  5306.  
  5307.     * make.c (struct stringlist, main, decode_switches): Changed `index'
  5308.     member to `idx'.
  5309.  
  5310. Sat Dec 24 16:02:32 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5311.  
  5312.     * commands.c (wait_for_children [USG]): Handle SIGCLD with SIG_DFL,
  5313.     rather than SIG_IGN.  Ignoring SIGCLD reportedly makes wait return -1.
  5314.  
  5315.     * arscan.c [USGr3]: Define PORTAR to 1 (as with sun386).
  5316.     (ar_scan [USGr3]): Remove trailing slashes from member names.
  5317.  
  5318. Thu Dec 22 17:54:05 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  5319.  
  5320.     * make.texinfo (Makefiles: Overriding Makefiles): New node
  5321.     documenting use of .DEFAULT to have one makefile defer unmakeable
  5322.     targets to another.
  5323.  
  5324.     * make.texinfo (Implicit: Using Implicit, Implicit: Last Resort):
  5325.     Mention empty commands and xref node `Empty Commands'.
  5326.  
  5327. Wed Dec 21 20:12:40 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  5328.  
  5329.     * Version 3.29.
  5330.  
  5331.     * make.c (struct command_switch, command_switches, et al): New
  5332.     member `noarg_value', if not nil, ptr to value to use if no arg is
  5333.     given to a switch that would otherwise require one.  The -j option
  5334.     can now be given w/o an arg, to mean infinite jobs.
  5335.     * commands.c: If job_slots is zero, infinite jobs.
  5336.  
  5337.     * read.c (read_all_makefiles, read_makefile): Make makefiles precious.
  5338.  
  5339.     * make.c (decode_switches): For a positive_int or floating option,
  5340.     if we moved to the next argument word, but found no argument for the
  5341.     option, move back to the correct word.
  5342.  
  5343.     * make.c (decode_switches): If we got any unknown options, die after
  5344.     processing all arguments.
  5345.  
  5346.     * GNUmakefile: Moved `include depend' to the end, so the default
  5347.     goal will be set before then.
  5348.  
  5349.     * load.c (wait_to_start_job [Unix, UMAX]): Merged into one version
  5350.     under #ifdef LDAV_BASED.  Only loop while we have jobs running.
  5351.     Sleep for increasing amounts (increase one second per iteration)
  5352.     before checking the load average (after the first check).
  5353.     Get the load average from function load_average.
  5354.     (wait_to_start_job [not LDAV_BASED]): Always return.
  5355.     (load_average [UMAX]): Fetch load average for Encore UMAX.
  5356.     (load_average [not NO_LDAV]): Fetch load average from /dev/kmem.
  5357.     [not NO_LDAV]: Define LDAV_BASED.
  5358.  
  5359. Tue Dec 20 18:54:50 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  5360.  
  5361.     * Version 3.28.
  5362.  
  5363.     * commands.c (wait_for_children): Take second arg, ERROR.  If
  5364.     nonzero, and there are children, print a message on stderr.
  5365.     (execute_file_commands, fatal_error_signal): Pass second arg.
  5366.     * make.c (die), remake.c (update_goal_chain), variable.c
  5367.     (expand_function: `shell'): Ditto.
  5368.  
  5369. Sat Dec 17 01:05:38 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5370.  
  5371.     * commands.c (start_job): Call wait_to_start_job before forking.
  5372.  
  5373.     * load.c (load_average): Converted to wait_to_start_job.
  5374.  
  5375.     * remote.c: New file for remote execution functions.
  5376.     (start_remote_job_p): Return nonzero if the next job should be run
  5377.     remotely.
  5378.     (start_remote_job): Start a remote job and return an ID for it.
  5379.     (remote_status): Get status of dead remote children.
  5380.  
  5381. Fri Dec 16 16:51:07 1988  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  5382.  
  5383.     * commands.c (start_job): If start_remote_job_p () returns nonzero,
  5384.     call start_remote_job to start the job rather than fork and exec.
  5385.     (child_handler):
  5386.  
  5387.     * commands.c (execute_file_commands): Moved load average checking to
  5388.     start_job.
  5389.  
  5390.     * commands.c (child_handler: USG): Record the pid wait returns.
  5391.  
  5392.     * load.c (UMAX): Added some #include's needed for UMAX.
  5393.  
  5394.     * read.c (multi_glob), variable.c (string_glob): Ignore a (char **)
  5395.     -1 return from glob_filename.
  5396.  
  5397.     * variable.c (variable_expand): Make sure we don't increment past
  5398.     the end of the string we were passed.
  5399.  
  5400.     * variable.c (variable_expand): Terminate the expansion.
  5401.  
  5402.     * file.c (rename_file): If there is already a file under the new
  5403.     name, set its contents equal to FILE's (ick).
  5404.  
  5405.     * variable.c (define_automatic_variables): Pass all the args to
  5406.     define_variable when defining MAKELEVEL!
  5407.  
  5408.     * commands.c (execute_file_commands): If max_load_average > 0, and
  5409.     we have children running, don't start up another child until the
  5410.     load average goes below max_load_average.
  5411.  
  5412.     * make.c: New variable `max_load_average'.
  5413.     (struct command_switch, decode_switches, decode_env_switches):
  5414.     Handle floating-point (double) args.
  5415.     (command_switches): Added `-l' switch to set `max_load_average'.
  5416.  
  5417.     * load.c (load_average): New file and function to return a double
  5418.     that is the current load average (1.00 scale).
  5419.     * GNUmakefile, oldMakefile: Pass flags in $(LOAD_AVG) for load.c.
  5420.  
  5421. Thu Dec 15 15:22:08 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  5422.  
  5423.     * Makefile: Renamed to oldMakefile.
  5424.     * GNUmakefile: Make Makefile from oldMakefile and depend.
  5425.  
  5426.     * read.c (read_all_makefiles): When putting the default makefiles in
  5427.     the read_makefiles chain so they will be remade, put them in the
  5428.     right order.
  5429.  
  5430.     * remake.c (update_goal_chain): If MAKEFILES is nonzero, always make
  5431.     in serial, and return as soon as one goal whose `changed' member is
  5432.     nonzero  is successfully remade.
  5433.  
  5434.     * commands.c: Don't include <sys/fcntl.h>.
  5435.  
  5436.     * commands.c (construct_command_argv): Added ` to sh_chars.
  5437.  
  5438.     * make.h: Don't declare construct_makeflags.
  5439.  
  5440.     * make.c (main): Set up MAKEFLAGS and MFLAGS and make an environment
  5441.     both before and after reading the makefiles, so the makefiles can
  5442.     use them and possible change them, and later children will get the
  5443.     right information.
  5444.     (construct_makeflags): Replaced with define_makeflags (static void),
  5445.     which defines the two variables.
  5446.     * variable.c (define_automatic_variables): Don't define MAKEFLAGS
  5447.     and MFLAGS.
  5448.  
  5449. Mon Dec 12 14:40:31 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  5450.  
  5451.     * Version 3.27.
  5452.  
  5453.     * commands.c (child_handler): Reset the handler to ourselves when
  5454.     called for USG, since it has no safe signals.
  5455.  
  5456.     * commands.c: For USG, use an int rather than a `union wait' for
  5457.     wait calls, and dissect it with bitmasks.
  5458.     (child_handler): No wait3 system call in USG.  Since we can't
  5459.     protect from hanging, always return immediately if we have no
  5460.     children we know about and we're not running a `shell' function.
  5461.     (There is still the danger of hanging waiting for a child that died
  5462.     without our being notified.)
  5463.  
  5464.     * remake.c: Include <fcntl.h> instead of <sys/file.h>.  What we need
  5465.     is really in <fcntl.h>, and while BSD <sys/file.h> includes
  5466.     <fcntl.h>, USG doesn't.
  5467.  
  5468.     * make.c (main): Figure out the program name before doing anything
  5469.     which might need it (in a call to error or fatal).
  5470.  
  5471.     * dir.c, glob.c: Use `struct dirent' and <dirent.h> for USGr3.
  5472.  
  5473.     * arscan.c (ar_scan): Added missing & before buf (which is an int)
  5474.     if SARMAG is not defined (SysV).
  5475.  
  5476. Fri Dec  9 18:44:13 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  5477.  
  5478.     * Version 3.26.
  5479.  
  5480.     * dir.c (find_directory, dir_file_exists_p): Keep track of how many
  5481.     directories we have open and don't let it be more than
  5482.     MAX_OPEN_DIRECTORIES (currently 10).
  5483.  
  5484.     * variable.c (expand_function: `foreach'): Use expand_argument
  5485.     rather than variable_expand so each repetition doesn't clobber the
  5486.     last!!!
  5487.  
  5488. Mon Dec  5 15:58:46 1988  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  5489.  
  5490.     * Version 3.25.
  5491.  
  5492.     * Makefile: Define `install' target.
  5493.  
  5494.     * GNUmakefile: Don't include GNUmakefile or depend in the
  5495.     distribution file.
  5496.  
  5497. Wed Nov 30 15:53:42 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  5498.  
  5499.     * commands.c (execute_file_commands): Don't clobber a null into
  5500.     random storage if there were no $^ and/or $? words.
  5501.  
  5502.     * remake.c (check_dep): Set *MUST_MAKE_PTR nonzero if a dependency
  5503.     doesn't exist.
  5504.  
  5505.     * ar.c (ar_member_date, ar_touch): Make sure the modtime of the
  5506.     archive file itself is known before we fetch or change the modtime
  5507.     of one of its members.
  5508.  
  5509.     * read.c (read_makefile): Expand variable and function references
  5510.     before parsing rules so variable can contain special characters
  5511.     (colons and semicolons).
  5512.  
  5513. Sat Nov 26 11:36:31 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  5514.  
  5515.     * variable.c (expand_function: `filter', `filter-out'): Fixed so
  5516.     that filter-out works right.
  5517.  
  5518.     * variable.c (expand_function: `filter', `filter-out'): Made these
  5519.     functions use each word of their first argument as a pattern.
  5520.  
  5521. Fri Nov 25 10:51:47 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5522.  
  5523.     * Version 3.24.
  5524.  
  5525.     * read.c (record_files): If a target is listed more than once in a
  5526.     single rule (that defines commands), give a warning message rather
  5527.     than the counter-intuitive message saying commands were already
  5528.     defined (in the same place).
  5529.  
  5530.     * make.c (fatal, error): Made them both take 6 args since there is
  5531.     at least one error message that need that many.  Too bad vfprintf is
  5532.     not universal!
  5533.  
  5534.     * Version 3.23.
  5535.  
  5536.     * read.c (read_makefile): Moved the construction of the `struct
  5537.     commands' into record_files.  Call record_files before recursing for an
  5538.     included makefile so the higher-up will determine the default goal.
  5539.     (record_files): Take arguments COMMANDS, COMMANDS_IDX and
  5540.     COMMANDS_STARTED and construct a `struct commands.
  5541.  
  5542. Thu Nov 24 14:36:33 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5543.  
  5544.     * Version 3.22.
  5545.  
  5546.     * make.c (main): Made it a fatal error if we can't move back to the
  5547.     directory we started in before re-execing.
  5548.  
  5549.     * make.c (main): Get the current directory before doing anything
  5550.     else, so we know it even if we don't need it for the value of
  5551.     `MAKE', since we might want it when re-execing.
  5552.  
  5553. Wed Nov 23 13:34:44 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  5554.  
  5555.     * Version 3.21.
  5556.  
  5557.     * read.c (record_files): Eliminate duplicate deps in a chain.
  5558.  
  5559.     * variable.c (expand_function: `sort'): Pass the right number to
  5560.     qsort, not one less.
  5561.  
  5562.     * remake.c (remake_file): Always call notice_finished_file if
  5563.     FILE->command_state == cs_finished.
  5564.  
  5565.     * commands.c (execute_file_commands): Call notice_finished_file to
  5566.     set FILE's status correctly when start_job fails (because it's out
  5567.     of commands or running under -n).
  5568.  
  5569. Fri Nov 18 15:31:12 1988  Roland McGrath  (mcgrath at saffron.Berkeley.EDU)
  5570.  
  5571.     * Version 3.20.
  5572.  
  5573.     * remake.c (update_file_1): Set the `update_status' of FILE to
  5574.     nonzero and set FILE's `updated' bit if we have decided to give up
  5575.     on remaking FILE because of errors in the dependencies.
  5576.  
  5577.     * rule.c (pattern_search): Debugging messages use `dependency' (vs.
  5578.     `dependent') properly.
  5579.  
  5580.     * make.texinfo (Conditionals: Conditional Syntax): Function index
  5581.     entries for `ifndef' and `ifneq'.
  5582.  
  5583.     * variable.c (define_automatic_variables): Define `MAKELEVEL' to the
  5584.     decimal number of the makelevel, since it may be malformed or blank.
  5585.  
  5586.     * remake.c (remake_file): Call notice_finished_file after touching.
  5587.  
  5588. Sat Nov 12 19:29:34 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  5589.  
  5590.     * Version 3.19.
  5591.  
  5592.     * GNUmakefile (dist): Pass the `-f' flag to compress.
  5593.  
  5594.     * vpath.c (build_vpath_lists): Check for VPATHS being nil after
  5595.     constructing the general VPATH list from the `VPATH' variable.
  5596.  
  5597. Fri Nov 11 08:02:26 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  5598.  
  5599.     * make.c (fatal, error): Made error messages for recursive runs be
  5600.     shorter.
  5601.  
  5602. Thu Nov 10 16:51:36 1988  Roland McGrath  (mcgrath at basil.Berkeley.EDU)
  5603.  
  5604.     * Version 3.18.
  5605.  
  5606.     * read.c (read_makefile): Made it eat leading spaces and formfeeds
  5607.     (but not tabs), like it's documented to.
  5608.  
  5609.     * read.c (read_makefile): Let included makefiles determine the
  5610.     default goal, as is done by System V Make.
  5611.  
  5612. Tue Nov  1 19:03:08 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  5613.  
  5614.     * variable.c (new_environ): Don't increment VCNT when a variable is
  5615.     rejected.
  5616.  
  5617. Fri Oct 28 16:54:15 1988  Roland McGrath  (mcgrath at basil.Berkeley.EDU)
  5618.  
  5619.     * Version 3.17.
  5620.  
  5621.     * rule.c (convert_to_pattern): Don't use the same storage for a name
  5622.     in two rules since new_pattern_rule may free this storage when a
  5623.     rule is discarded.
  5624.  
  5625.     * rule.c (new_pattern_rule): Undid useless change I made Oct 25.
  5626.  
  5627. Thu Oct 27 19:17:53 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  5628.  
  5629.     * Version 3.16.
  5630.  
  5631.     * GNUmakefile, Makefile: Fixed a typo in a comment.
  5632.     * Makefile: Removed malloc.o from object file list.
  5633.  
  5634.     * variable.c: Removed old debugging #define's for xmalloc and
  5635.     xrealloc so non-ANSI cpp's won't barf.
  5636.  
  5637.     * make.c (main): Made local array for temp file name static so
  5638.     compilers that don't do auto aggregate initialization won't barf.
  5639.  
  5640.     * read.c: Removed static declaration of copy_dep_chain since it is
  5641.     no longer static.
  5642.  
  5643. Tue Oct 25 16:59:30 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  5644.  
  5645.     * rule.c (new_pattern_rule): If we threw out the new rule because it
  5646.     matched an old one and OVERRIDE was zero, don't put the freed
  5647.     pointer in the chain!
  5648.  
  5649. Wed Oct 19 15:07:43 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  5650.  
  5651.     * Version 3.15.
  5652.  
  5653.     * variable.c (expand_function: `sort'): Don't do the sorting and
  5654.     writing out if there were no words in the first place.
  5655.  
  5656.     * remake.c (remake_file): Only fail with a "no way to make" message
  5657.     for a dependency (non-target) file.  If we don't know how to remake
  5658.     a target file, pretend it was successfully remade and is very new.
  5659.  
  5660.     * remake.c (remake_file): Don't increment `files_remade' for a
  5661.     non-target file we don't know how to remake.
  5662.  
  5663.     * read.c (record_files): Don't die with "both : and :: entries" for
  5664.     a file whose `is_target' flag is not set.
  5665.  
  5666. Tue Oct 18 17:24:11 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5667.  
  5668.     * variable.c (expand_function: `patsubst', `subst'): Free the right
  5669.     things!
  5670.  
  5671.     * variable.c (expand_function: `subst'): Don't clobber the
  5672.     pointer to the end of the second arg and then try to use it!!!
  5673.  
  5674. Mon Oct 17 16:44:45 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
  5675.  
  5676.     * variable.c (expand_function: `patsubst'): Don't clobber the
  5677.     pointer to the end of the second arg and then try to use it!!!
  5678.  
  5679.     * variable.c (expand_function: `word' function): Made it parse its
  5680.     second argument correctly.
  5681.  
  5682.     * ar.c (ar_touch): Return 1 rather than -1 for on errors.
  5683.  
  5684. Sat Oct 15 15:12:16 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  5685.  
  5686.     * Version 3.14.
  5687.  
  5688.     * GNUmakefile: Removed explicit rule for make.dvi since the built-in
  5689.     implicit rule now works.
  5690.  
  5691.     * rule.c (default_suffix_rules): Fixed .texinfo.dvi rule yet again
  5692.     so that it really works, now that parens are counted.
  5693.  
  5694.     * remake.c (update_file_1): Set FILE's `updated' flag after calling
  5695.     remake_file if it failed or finished immediately.
  5696.  
  5697.     * remake.c (update_file): Use the `updated' flag rather than the
  5698.     command state to decide if a file was fully considered, and
  5699.     therefore might give an "up to date" message.
  5700.  
  5701.     * variable.c (expand_function): Made all functions that take more
  5702.     than one argument count parens of the appropriate flavor in their
  5703.     args and ignore commands nested in parens.
  5704.  
  5705. Fri Oct 14 18:35:00 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  5706.  
  5707.     * read.c (read_all_makefiles): Pass second arg to read_makefile for
  5708.     default makefiles.
  5709.  
  5710. Thu Oct 13 16:40:08 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  5711.  
  5712.     * Version 3.13.
  5713.  
  5714.     * GNUmakefile: Added an explicit rule for make.dvi since the
  5715.     built-in .texinfo.dvi implicit rule is screwed up.
  5716.  
  5717.     * rule.c (default_suffix_rules): Added a comment that the
  5718.     .texinfo.dvi rule does not work because of an ahem, feature of Make
  5719.     that at some point will be fixed--er, enhanced to alleviate this
  5720.     difficulty.
  5721.  
  5722.     * rule.c (default_suffix_rules): Fixed Texinfo -> DVI rule (again).
  5723.  
  5724.     * make.texinfo (Commands: Execution): Documented new competing for
  5725.     standard input among children.
  5726.  
  5727.     * commands.c (struct child): Added `good_stdin' flag to tell if this
  5728.     child has the stdin that doesn't point into nirvana.
  5729.     (good_stdin_used): New variable to tell if any child has the good
  5730.     standard input.
  5731.     (child_handler): Reset `good_stdin_used' if a dead child's
  5732.     `good_stdin' flag is set.
  5733.     (start_job): Give the new child the good standard input if
  5734.     `good_stdin_used' is no set, and set the child's `good_stdin' flag
  5735.     appropriately.
  5736.  
  5737.     * rule.c (default_suffix_rules): Changed Texinfo -> DVI rule to work
  5738.     better (I hope).
  5739.  
  5740.     * read.c (read_all_makefiles): Stop reading default makefiles after
  5741.     one is found.
  5742.  
  5743.     * read.c (read_makefile): Reset `reading_filename' and
  5744.     `reading_lineno_ptr' after recursing for an included makefile.
  5745.  
  5746.     * GNUmakefile: New GNU Make-specific makefile that does everything
  5747.     Makefile does plus distribution stuff, and doesn't contain any hacks
  5748.     to try to work with Unix make.
  5749.  
  5750.     * Makefile: Removed distribution stuff.
  5751.  
  5752.     * make.c (main): Use mktemp to construct the names of temporary
  5753.     files used for standard input makefiles.
  5754.  
  5755.     * make.c (main): Don't turn standard input into a broken pipe.
  5756.  
  5757.     * commands.c (start_job): Keep two extra file descriptors around: a
  5758.     good standard input, and a bad one that reads from a broken pipe.
  5759.     On the child side of the fork, if there are other children, give
  5760.     this one the broken pipe so they won't compete; if this is the only
  5761.     one, give it the good standard input.
  5762.  
  5763.     * make.h: Declare notice_finished_file.
  5764.  
  5765.     * commands.c (execute_file_commands): Use noticed_finished_file
  5766.     after waiting for the child when there is only one job slot.
  5767.  
  5768.     * remake.c (notice_finished_file): New function to re-check mtime's
  5769.     and such things to be done when commands finish.
  5770.     (update_file_1): Use notice_finished_file.
  5771.  
  5772.     * commands.c (child_handler, execute_file_commands): Use new
  5773.     variable `job_slots_used' to record the number of jobs currently
  5774.     running, rather than diddling with `job_slots'.
  5775.     (execute_file_commands): Increment `job_slots_used' before calling
  5776.     start_job and decrement it on failure to avoid race condition.
  5777.     If there is only one job slot, wait for the child to finish and
  5778.     return its status so commands are run in linear order, as if there
  5779.     were no parallelism.
  5780.  
  5781. Wed Oct 12 15:59:03 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  5782.  
  5783.     * remake.c (remake_file): Don't print a "No way to make" message for
  5784.     targets whose `dontcare' flags are set.
  5785.  
  5786.     * read.c (read_all_makefiles): Set the `dontcare' flag of the
  5787.     `struct file' each default makefile added to the chain.
  5788.  
  5789.     * file.h (struct file): Add `dontcare' member.
  5790.  
  5791.     * read.c (read_all_makefiles): When no default makefiles are found,
  5792.     put the names of all those tried in the `read_makefiles' chain so
  5793.     they will be updated if possible, giving their `struct dep's'
  5794.     `changed' members the value of 0 so we won't care if they cannot be
  5795.     found or remade.
  5796.  
  5797.     * make.texinfo (Makefiles: Remaking Makefiles): Documented that
  5798.     default makefiles will be remade if not found.
  5799.  
  5800.     * read.c (read_all_makefiles): If no default makefiles can be found,
  5801.     go through the list of default names, trying to make one, stopping
  5802.     if one is made.
  5803.  
  5804.     * remake.c (remake_file): Set STATUS to 0 after successfully touching.
  5805.  
  5806.     * dir.c (file_impossible, file_impossible_p): Don't clobber FILENAME
  5807.     to "" and then try to to a strcmp on it!!!
  5808.  
  5809. Mon Oct 10 16:09:18 1988  Roland McGrath  (mcgrath at cinnamon.Berkeley.EDU)
  5810.  
  5811.     * make.c (main): Don't do `dir_load (".")'.
  5812.  
  5813.     * rule.c (count_implicit_rule_limits), vpath.c
  5814.     (construct_vpath_list): Test the existence of a given directory by
  5815.     `dir_file_exists_p (DIR, ".")' and assume that if this returns zero,
  5816.     it means the directory really does not exist.
  5817.  
  5818.     * dir.c (struct dirdata): Replaced with `struct directory' for
  5819.     directories, each containing a chain of `struct dirfiles', one for
  5820.     each file (real or impossible).
  5821.     (dir_load): Removed.
  5822.     (find_directory): New function to find the `struct directory' for a
  5823.     named directory and return it (possibly creating a new one).
  5824.     (dir_file_exists_p): Read the directory on the fly if its stream is
  5825.     still valid (and ever was) if the file we're looking for is not
  5826.     already in the hash tables.
  5827.     (file_impossible, file_impossible_p, dir_name, print_dir_data_base):
  5828.     Use the new directory/file scheme.
  5829.  
  5830.     * make.texinfo: Miscellaneous editorial changes and clarifiactions.
  5831.  
  5832.     * commands.c (struct child): Remove `environ' member.
  5833.     (child_handler, start_job, execute_file_commands): Remove use of
  5834.     `environ' member and new_environ.
  5835.  
  5836.     * make.c (main): Call new_environ after reading makefiles.
  5837.  
  5838.     * variable.h: Declare `new_environ' to return void.
  5839.  
  5840.     * variable.c (new_environ): Put the environment in `environ' and
  5841.     return void.
  5842.  
  5843. Fri Oct  7 15:48:39 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  5844.  
  5845.     * Version 3.12.
  5846.  
  5847.     * Makefile: Don't make the uncompressed tar file.
  5848.  
  5849.     * variable.c (expand_function: `shell' function): Made it not expect
  5850.     read to null-terminate the buffer.
  5851.  
  5852.     * Makefile: Made it use a temporary symlink to . rather than a
  5853.     temporary directory to make the distribution tar file.
  5854.  
  5855. Thu Oct  6 17:52:35 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5856.  
  5857.     * Version 3.11.
  5858.  
  5859.     * make.texinfo: Fixed a line that got garbaged somehow.
  5860.  
  5861. Mon Oct  3 16:14:39 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  5862.  
  5863.     * make.c (main): Try to move back to the directory we started in
  5864.     before re-exec ourself.
  5865.  
  5866.     * remake.c (update_file_1): A double-colon target with no deps
  5867.     always needs to be remade.
  5868.  
  5869.     * remake.c (remake_file): Changed "No way to make" message to say
  5870.     `target' rather than `file'.
  5871.  
  5872. Sun Oct  2 12:50:47 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
  5873.  
  5874.     * remake.c (update_file_1): Set FILE->update_status to the return
  5875.     value of remake_file.
  5876.  
  5877.     * rule.c (convert_to_pattern): Fixed swapped lengths passed to
  5878.     xmalloc for source/target suffixes.
  5879.  
  5880.     * make.texinfo: Documented that MAKEFLAGS and MFLAGS are read in
  5881.     from makefiles.  Updated the `Features' section a bit.
  5882.  
  5883.     * make.c (main): Read switches from MAKEFLAGS and MFLAGS variables
  5884.     after reading in makefiles.
  5885.  
  5886.     * make.c (main): Put a line "/tmp/foo:;" rather than ".PHONY:
  5887.     /tmp/foo" in front of temp files made for stdin makefiles.
  5888.  
  5889.     * remake.c (update_file): Test the state of the right `struct file'
  5890.     for double-colon files.
  5891.  
  5892.     * make.c (main): Put a ".PHONY: /tmp/foo" line in front of temp
  5893.     files made for stdin makefiles so they won't be remade when we
  5894.     re-exec.  Kludge-o-matic!!
  5895.  
  5896.     * remake.c (update_goal_chain): Judge files as being finished based
  5897.     on their `updated' flag, not their state.
  5898.  
  5899.     * read.c (read_makefile): Don't check for FILENAME being "-".
  5900.     (read_all_makefiles): Set each element of MAKEFILES to the name put
  5901.     in READ_MAKEFILES by read_makefile, since read_makefile may free the
  5902.     storage for the name it is passed, and someone might want to look at
  5903.     the elements of MAKEFILES again.
  5904.  
  5905.     * make.c (main): For each `-f' flag with arg `-' (standard input),
  5906.     read standard input into a temp file and pass the temp file's name
  5907.     to read_all_makefiles, after making sure it will not be remade.
  5908.  
  5909.     * make.c (construct_makeflags): Always put out `-j1'.
  5910.  
  5911. Sat Oct  1 00:19:59 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  5912.  
  5913.     * commands.c (execute_file_commands): If commands are nothing but
  5914.     whitespace, set the state to `cs_finished' before returning 0.
  5915.  
  5916.     * make.c (decode_switches): Allocate space for args in stringlists
  5917.     so they can be freed later.
  5918.  
  5919.     * make.h: Declare `makelevel'.
  5920.  
  5921.     * variable.c (makelevel): Moved to make.c (and made global).
  5922.  
  5923.     * make.c (fatal, error): Print the makelevel if it's > 0.
  5924.     (perror_with_name): Use error rather than calling fprintf directly.
  5925.     (pfatal_with_name): Use fatal rather than fprintf and die.
  5926.  
  5927.     * variable.c (new_environ): Don't put default variables (origin
  5928.     `o_default') into the environment; they just take up space.
  5929.  
  5930.     * read.c (read_makefile): Don't add FILENAME to the chain of read
  5931.     makefiles if it's "-" (standard input).
  5932.  
  5933.     * remake.c (update_goal_chain): Set STATUS correctly when nothing
  5934.     happens (as well as in all other situations).
  5935.  
  5936.     * make.c (construct_makeflags): Put a `-' before each switch and
  5937.     spaces between them.
  5938.  
  5939.     * Version 3.10.
  5940.  
  5941.     * commands.c (wait_for_children): Don't check if `children' is nil.
  5942.     This is the case when waiting for the child of a `shell' function.
  5943.  
  5944.     * dir.c (dir_load): Don't add a hash-table entry for directory
  5945.     DIRNAME and filename "" if DIRNAME doesn't exist.
  5946.  
  5947.     * commands.c (execute_file_commands): Return 0 after start_job
  5948.     returns 1 (failure) under the -n flag.
  5949.  
  5950.     * remake.c (remake_file): Set the state to `cs_finished' when not
  5951.     calling execute_file_commands.
  5952.  
  5953.     * remake.c (update_goal_chain): Second arg is now MAKEFILES, nonzero
  5954.     meaning to disable -t, -q, and -n for each target unless the target
  5955.     was also given on the command-line.
  5956.  
  5957.     * read.c (read_makefile): Enter the `struct file's for the makefiles
  5958.     added to the `read_makefiles' `struct dep' chain.
  5959.  
  5960.     * remake.c (update_goal_chain): Made it not enter the files for the
  5961.     goals in the chain.  It will already have been done.
  5962.  
  5963.     * rule.c (convert_to_pattern): Null-terminate the names of targets
  5964.     and deps of the pattern rules properly.
  5965.  
  5966. Fri Sep 30 18:56:20 1988  Roland McGrath  (mcgrath at nutmeg.Berkeley.EDU)
  5967.  
  5968.     * make.c (main): Call install_default_pattern_rules.
  5969.  
  5970.     * make.h: Declare copy_dep_chain.
  5971.  
  5972.     * read.c (copy_dep_chain): Moved to make.c (and made global).
  5973.  
  5974.     * make.c (main): Call update_goal_chain to update goals.
  5975.     Update read makefiles and re-exec self if they change.
  5976.  
  5977.     * remake.c (update_file): Make this function static.
  5978.     (update_goal_chain): New function to update a `struct dep' chain of
  5979.     goals, waiting until they are all finished before returning.
  5980.  
  5981.     * make.h: Don't declare update_file.  Declare update_goal_chain.
  5982.  
  5983.     * make.c (main): Call snap_deps, etc. that were in read_all_makefiles.
  5984.  
  5985.     * read.c (find_makefile): Removed this function.
  5986.     (read_all_makefiles): Don't update makefiles, don't diddle with
  5987.     pattern rules, don't call snap_deps, etc.  Return a `struct dep'
  5988.     chain of all makefiles read.
  5989.     (read_makefile): Now takes two args: FILENAME and TYPE, which is 0
  5990.     for a normal makefile, 1 for MAKEFILES variable or 2 for an included
  5991.     makefile.  Add a `struct dep' containing the name of the makefile
  5992.     (as it was found in the search path for type 2s), and TYPE in the
  5993.     `changed' member to the global `read_makefiles' chain.
  5994.  
  5995.     * make.h, rule.c (displace_pattern_rules,
  5996.     add_displaced_pattern_rules): Removed these functions.
  5997.  
  5998.     * read.c (read_makefile): Variable-expand the name of an `include'd
  5999.     makefile before calling find_makefile on it.
  6000.  
  6001.     * file.c (snap_deps): If the `struct file' for a `struct dep'
  6002.     already exists, free the `struct dep's `name' member before setting
  6003.     it to nil (since this info is in the `struct file').
  6004.  
  6005.     * read.c (copy_dep_chain): Made it copy each name rather than
  6006.     leaving multiple `struct dep's with the same pointers.
  6007.  
  6008. Thu Sep 29 19:08:13 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
  6009.  
  6010.     * make.c (decode_switches): Fixed second decode_env_switches call to
  6011.     use correct length of "MFLAGS" (6, not 5).
  6012.  
  6013.     * read.c (read_makefile): Don't stop reading when readline returns
  6014.     zero lines read.  Only stop when the stream reaches EOF.  This makes
  6015.     it recognize the last line of a makefile without a newline.
  6016.  
  6017.     * remake.c (remake_file): If we don't know how to make FILE, set its
  6018.     command state to `cs_finished'.
  6019.  
  6020.     * remake.c (update_file): Don't write the "up to date" message if
  6021.     update_file_1 returned a nonzero status.
  6022.  
  6023. Wed Sep 28 16:30:07 1988  Roland McGrath  (mcgrath at catnip.Berkeley.EDU)
  6024.  
  6025.     * commands.c (child_handler): Set the `update_status' member
  6026.     properly for ignored errors.
  6027.  
  6028.     * rule.c (convert_to_pattern): Made it not care about if the target
  6029.     suffix comes before the source suffix in the .SUFFIXES list.
  6030.  
  6031.     * make.texinfo: Misc editorial changes.
  6032.  
  6033.     * commands.c (wait_for_children): Return immediately if `children'
  6034.     is nil (there are no children).
  6035.  
  6036. Tue Sep 27 15:33:14 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  6037.  
  6038.     * Version 3.09.
  6039.  
  6040.     * commands.c (struct child): New member `command_ptr' to hold the
  6041.     current position in the commands.  The `commands' member is never
  6042.     changed.
  6043.     (start_job, child_handler, execute_file_commands): Use new method
  6044.     for `commands' and `command_ptr' members.
  6045.  
  6046.     * make.c (decode_env_switches): Skip past an invalid letter (instead
  6047.     of looping forever).
  6048.  
  6049.     * commands.c (struct child): Add `environ' member to hold the
  6050.     environment for this child.
  6051.     (execute_file_commands): Get a new environment from new_environ and
  6052.     put in the the new `struct child's `environ' member.
  6053.     (child_handler): When freeing a child, free its `commands' member, the
  6054.     elements of its `environ' array and its `environ' member itself.
  6055.     (start_job): Set `environ' to the child's `environ' member before
  6056.     exec'ing the command.
  6057.  
  6058.     * variable.h, variable.c (new_environ): Made it return the new
  6059.     environment, not putting it in `environ'.
  6060.  
  6061.     * remake.c (update_file): Don't give a "is up to date" message
  6062.     unless no files were remade and the state went from `cs_not_started'
  6063.     to `cs_finished', so repeat calls to finish jobs won't get the message.
  6064.  
  6065. Mon Sep 26 16:26:08 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  6066.  
  6067.     * Version 3.08.
  6068.  
  6069.     * make.texinfo (Commands: Execution): Documented that children will
  6070.     be waited for rather than killed.
  6071.  
  6072.     * commands.c (fatal_error_signal): Wait for children.
  6073.     (kill_children): Removed this function.
  6074.  
  6075.     * make.c (main, die): Wait for children to die, don't kill them.
  6076.  
  6077.     * variable.c (expand_function): Use wait_for_children.
  6078.  
  6079.     * make.c (main): Use wait_for_children rather than child_handler.
  6080.  
  6081.     * commands.c (wait_for_children): New function to block waiting for
  6082.     children, insuring that child_handler is not called recursively.
  6083.     (execute_file_commands, kill_children): Use wait_for_children.
  6084.  
  6085.     * commands.c (child_handler): Start up additional commands in a
  6086.     sequence after an ignored error.
  6087.  
  6088.     * remake.c (update_file): Don't print "`foo' is up to date" messages
  6089.     when update_file_1 returns while commands are executing.
  6090.  
  6091.     * remake.c (update_file_1): Pass the file name to name_mtime, not
  6092.     the bloody `struct file', dammit!!
  6093.  
  6094.     * commands.c (child_handler): Print out the "*** ..." error message
  6095.     when not under -i.  (I somehow forgot this.)
  6096.  
  6097.     * remake.c (update_file_1): Use name_mtime rather than file_mtime to
  6098.     re-get the mtime of a file whose commands have finished.
  6099.  
  6100.     * make.c (command_switches, decode_switches, decode_env_switches):
  6101.     Make all switches that take string args allow them right after the
  6102.     switch letter.
  6103.  
  6104.     * commands.c (child_handler): Check for a child being the `shell'
  6105.     function's command returning and set the global variable for
  6106.     expand_function to check.
  6107.  
  6108.     * variable.c (expand_function): For the `shell' function, instead of
  6109.     waiting for the child shell ourselves, let child_handler do it and
  6110.     loop around waiting for something to happen.
  6111.  
  6112.     * make.c (print_version): Made the copyright year static, not dynamic.
  6113.  
  6114.     * make.h, make.c: Remove construct_argv function.
  6115.  
  6116.     * make.c (main): Say "no goal target" instead of "no target".
  6117.  
  6118.     * make.texinfo (Commands: Parallel): Don't send SIGKILL.
  6119.  
  6120.     * commands.c (kill_children): Don't send SIGKILL to children that
  6121.     aren't killed by the first signal.
  6122.  
  6123.     * make.c (main), commands.c (kill_children): Decide between SIGCHLD
  6124.     and SIGCLD based on whether or not SIGCHLD is defined, not on USG.
  6125.  
  6126.     * Makefile: Link make with $(LOADLIBES).
  6127.  
  6128.     * read.c (construct_include_path): Fixed another bad xrealloc call.
  6129.  
  6130.     * make.c (decode_switches): Fixed an xrealloc call with no first arg.
  6131.  
  6132. Sat Sep 24 01:16:21 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  6133.  
  6134.     * Version 3.07.
  6135.  
  6136.     * remake.c (update_file_1): If deps are running, set state to
  6137.     `cs_deps_running' and return 0.  If deps are done, run commands.
  6138.  
  6139.     * commands.c (child_handler): Made it delete non-precious targets
  6140.     killed by fatal signals.
  6141.  
  6142.     * make.texinfo: Documented parallelism.
  6143.  
  6144. Fri Sep 23 16:52:27 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  6145.  
  6146.     * remake.c (update_file_1): Don't return if FILE's state is
  6147.     `cs_deps_running'.  In that case, we need to run through and check
  6148.     the states of all our dependencies.
  6149.  
  6150.     * commands.c (execute_file_commands): Decrement `job_slots' after
  6151.     starting a new job to run file commands.
  6152.  
  6153.     * commands.c (start_job): Made it set the state to `cs_running'.
  6154.  
  6155.     * make.c (main): Fixed usage of `g', `lastgoal', and `goals' in the
  6156.     goal-making loop.
  6157.  
  6158.     * commands.c (child_handler): When commands finish, set the
  6159.     corresponding file's `update_status' and `updated' flags as
  6160.     appropriate, and reset the modtimes of the file and any `also_make'
  6161.     files it has.
  6162.  
  6163.     * remake.c (remake_file): Don't re-set `last_mtime' and set `updated'.
  6164.  
  6165.     * commands.c (fatal_error_signal): Don't swallow all the children
  6166.     with a loop around `wait ((union wait *) 0)'!!!
  6167.  
  6168.     * make.c (struct command_switch): Added `positive_int' type.
  6169.     (switches): Added -j (job_slots).
  6170.     (construct_makeflags, decode_switches, decode_env_switches):
  6171.     Handle`positive_int'-type switches.
  6172.  
  6173.     * glob.c (glob_vector): Rename local variable `vector' to `VeCtOr'.
  6174.     This is said to avoid a conflict with some system's global `vector'
  6175.     variable.
  6176.  
  6177.     * variable.c (expand_function): Made the `shell' function use
  6178.     construct_command_argv and do its own child control and piping.
  6179.  
  6180.     * make.c (main): Turn standard input into a broken pipe after
  6181.     reading in all makefiles (the last time it will be needed).
  6182.  
  6183.     * commands.c (struct child): Remove `pipe_fd' member.  We don't use
  6184.     pipes any more.
  6185.     (start_job): Return 0 for success, 1 or failure (rather than void).
  6186.     Don't use pipes.  Don't turn the child's stdin into a broken pipe.
  6187.     (child_handler): Print "*** Error" messages when necessary.
  6188.     Die on failed commands when -k was not given.
  6189.     (execute_file_commands): Check the return of start_job and remove
  6190.     the child from the chain and return failure if it is nonzero.
  6191.  
  6192.     * make.c (die): New function to clean up and exit.
  6193.     (fatal, pfatal_with_name): Use die.
  6194.  
  6195. Thu Sep 22 14:27:11 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  6196.  
  6197.     * commands.c (struct child): Added `commands', `pipe_fd', and
  6198.     `noerror' members to keep track of info about a command thread.
  6199.     (start_job): New function to start a job and update the argument
  6200.     `struct child' to reflect its status.
  6201.     (execute_file_commands): Merged run_file_commands back in.
  6202.     Made it use new start_job function.
  6203.  
  6204.     * rule.c (freerule): Don't free the `struct commands' of the
  6205.     discarded rule.  It may be used in more than one place.
  6206.  
  6207.     * commands.c (execute_command_line): Made it not try to delete the
  6208.     possibly partly-made file.  The child_handler function will do this.
  6209.     (fatal_error_signal): Ditto + call kill_children.
  6210.  
  6211.     * make.h: Declare job_slots.
  6212.  
  6213.     * make.c (main): Collect goals in a dep chain and run through this
  6214.     chain waiting for a child, eliminating finished goals, updating all
  6215.     remaining goals, and quitting if they fail and not -k.
  6216.  
  6217.     * commands.c (child_handler): If called with SIG < 0, - SIG is the
  6218.     max number of children to bury.
  6219.  
  6220.     * commands.c (child_handler): If called with SIG as zero,
  6221.     block waiting for running children.
  6222.     (kill_children): Call child_handler with zero rather than SIGCHLD.
  6223.  
  6224.     * remake.c (update_file_1): Use the `command_state' member of FILE
  6225.     and its dependencies to determine what commands are running, what to
  6226.     do, etc.  If commands or dep commands are running when we are
  6227.     called, return success (0).  If commands finished since the last
  6228.     time we were called, return their status.
  6229.  
  6230.     * commands.h: Declare kill_children.
  6231.  
  6232.     * commands.c: Define `struct child' to keep track of child
  6233.     processes, with the chain in `children'.
  6234.     (child_handler): New function to catch child-termination signals
  6235.     (SIGCHLD, or SIGCLD for USG), store the returned status in the
  6236.     appropriate structure, take the now-obsolete `struct child' out of
  6237.     the chain, and free its storage.
  6238.     (execute_file_commands): Put all of the stuff invloving running the
  6239.     commands into new function run_file_commands.  Execute_file_commands
  6240.     now does process management for the commands, while
  6241.     run_file_commands (which is run in a subprocess) runs the commands.
  6242.     (kill_children): New function to kill all running children by
  6243.     sending them signal SIG.  If there are any children still living
  6244.     after they are all sent SIG, they are all sent SIGKILL.
  6245.  
  6246.     * make.c (main): Catch SIGCHLD (SIGCLD for USG) with child_handler.
  6247.  
  6248.     * commands.h: Declare child_handler function.
  6249.  
  6250.     * commands.c (execute_file_commands): Check the `command_state'
  6251.     member of FILE and return 0 if it is `cs_running' or
  6252.     `cs_deps_running' and return the stored status if it is `cs_finished'.
  6253.  
  6254.     * file.h (struct file): Added `command_state' member.
  6255.  
  6256.     * commands.c (execute_command_line): Add `$' to the list of
  6257.     characters special to the shell.
  6258.  
  6259. Wed Sep 21 15:57:41 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  6260.  
  6261.     * read.c (read_all_makefiles): Call convert_to_pattern before
  6262.     recomputing the limits after adding the displaced rules.
  6263.  
  6264.     * make.c (main): Move calls to snap_deps, convert_to_pattern, and
  6265.     build_vpath_lists to read_all_makefiles.
  6266.  
  6267.     * read.c (read_all_makefiles): Install the default pattern rules
  6268.     before checking to remake the makefiles, displace these rules before
  6269.     reading in the makefiles, and then add the displaced rules to the
  6270.     chain after reading in all the makefiles.
  6271.  
  6272.     * make.c (main): Don't call install_default_pattern_rules or
  6273.     count_implicit_rule_limits.
  6274.  
  6275.     * make.h: Declare displace_pattern_rules and
  6276.     add_displaced_pattern_rules.
  6277.  
  6278.     * rule.c (displace_pattern_rules, add_displaced_pattern_rules): New
  6279.     functions to stow the chain and add the stowed chain on the end of
  6280.     the current chain.
  6281.  
  6282.     * make.texinfo (Implicit: Search Algorithm): Fixed PREV reference.
  6283.  
  6284.     * make.c (main): Call construct_include_path right after decoding
  6285.     the switches.
  6286.  
  6287.     * read.c (find_makefile): Use rename_file.
  6288.  
  6289.     * file.h: Declare rename_file.
  6290.  
  6291.     * file.c (rename_file): New function to rename a `struct file' and
  6292.     put it in the correct hash bucket.
  6293.  
  6294.     * read.c (find_makefile): New function to find and update a makefile.
  6295.      (read_all_makefilese): Use find_makefile.
  6296.      (read_makefile): Don't do updating.  Removed UPDATEIT arg.
  6297.  
  6298.     * remake.c (update_file_1): Took out setting the `updated' member to
  6299.     -1 rather than 1 sometimes.
  6300.  
  6301.     * make.c (main): Made it print version info before doing anything else.
  6302.  
  6303.     * remake.c (library_file_mtime, f_mtime): Removed use of last two
  6304.     arguments to vpath_search.
  6305.  
  6306.     * rule.c (pattern_search): Removed use of last two arguments
  6307.     to vpath_search.
  6308.  
  6309.     * vpath.c (vpath_search, selective_vpath_search): Removed unused
  6310.     DIRPREFIX and DPLEN args.
  6311.  
  6312.     * read.c (read_makefile): Also turn off -n when updating makefiles.
  6313.  
  6314. Tue Sep 20 17:01:10 1988  Roland McGrath  (mcgrath at pepper.Berkeley.EDU)
  6315.  
  6316.     * Makefile: Put tags files in the tarfile.
  6317.  
  6318.     * read.c (read_makefile): Get the modtime of the makefile via a stat
  6319.     call so that a later file_mtime call won't do VPATH search for it.
  6320.  
  6321.     * read.c (read_makefile): Don't turn off -t and -q if the makefile
  6322.     was a command-line target.
  6323.  
  6324.     * make.c (main): Enter command-line targets as files and set their
  6325.     `cmd_target' members.
  6326.  
  6327.     * file.h (struct file): Added `cmd_target' member.
  6328.  
  6329.     * read.c (read_makefile): Temporarily turn off -t and -q while
  6330.     updating makefiles.
  6331.  
  6332.     * make.c (main): Don't use arg 0 from other_args (which is now
  6333.     argv[0]; i.e., the program's name).
  6334.  
  6335.     * read.c (read_makefile): Only return nonzero if commands were
  6336.     actually run to remake the makefile.
  6337.  
  6338.     * remake.c (update_file_1): Set FILE->updated to -1 if no commands
  6339.     were actually run (because no update was done or -t was given).
  6340.  
  6341.     * make.c (decode_switches): Fixed bug wherein xrealloc was passed
  6342.     bad args if it tried to expand other_args->list.
  6343.  
  6344.     * read.c (read_all_makefiles): Made it not look at the `MAKE'
  6345.     variable, just use argv[0].
  6346.  
  6347. Sun Sep 18 17:34:11 1988  Roland McGrath  (mcgrath at paris.Berkeley.EDU)
  6348.  
  6349.     * read.c (rerun_make): New function to re-exec make.
  6350.  
  6351.     * make.c (construct_makeflags, construct_argv): New functions to
  6352.     construct the `MAKEFLAGS' variable and to construct an arg list from
  6353.     parsed info.
  6354.  
  6355.     * read.c (read_makefile): New arg UPDATEIT, if nonzero, says to
  6356.     update the makefile as a target before reading it in.  When reading
  6357.     included makefiles, pass this as zero.  Now returns nonzero if the
  6358.     makefile was updated, zero if not.
  6359.     (read_all_makefiles): Pass a nonzero UPDATEIT arg to read_makefile
  6360.     for all default and -f makefiles and all makefiles from the
  6361.     `MAKEFILES' variable.  If any of the makefiles has changed, re-exec
  6362.     self to re-read them.
  6363.  
  6364.     * remake.c (update_file): Print a "File `foo' up to date'" message
  6365.     under -p.
  6366.  
  6367.     * commands.c (execute_file_commands): Allocate one byte for each of
  6368.     $^ and $< rather than zero if they are to be empty.
  6369.  
  6370. Fri Sep 16 13:59:59 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6371.  
  6372.     * Version 3.06.
  6373.  
  6374.     * make.c (command_switches): Fixed entry for `-o' switch.
  6375.  
  6376.     * make.texinfo: Renamed -c switch to -C.
  6377.  
  6378.     * make.c: Renamed -c switch to -C.
  6379.  
  6380.     * Miscellaneous de-linting.
  6381.  
  6382.     * read.c (record_files): Made it not free the storage for the name
  6383.     if it started with `./' and was therefore not quite the same as in
  6384.     the `struct file'.
  6385.  
  6386.     * read.c (record_files): If commands were specified twice, the error
  6387.     message specifies in what files and at what line numbers.
  6388.  
  6389.     * make.c (main): If any of the signals we usually fatal on were
  6390.     ignored by the parent (probably a shell), ignore them.
  6391.  
  6392.     * make.c (main): Print version info for -v, -p, or -d.
  6393.     (print_data_base): Don't print version info.  It will be done in main.
  6394.  
  6395.     * variable.c: Increased number of hash buckets to 257.
  6396.  
  6397.     * file.c: Increased number of hash buckets to 1007.
  6398.  
  6399.     * rule.c (count_implicit_rule_limits): Moved comptation of
  6400.     `maxsuffix' to convert_to_pattern, since that function uses
  6401.     `maxsuffix', and must be called before count_implicit_rule_limits.
  6402.  
  6403.     * rule.c (pattern_search): If an existent (non-intermediate)
  6404.     dependendency was found via a terminal rule, set its
  6405.     `tried_implicit' flag, so it will never have implicit rule search done.
  6406.  
  6407.     * glob.c: Bug fix to avoid alloca(0).
  6408.  
  6409.     * arscan.c: USG and Sun386i fixes.
  6410.  
  6411. Thu Sep 15 19:40:26 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  6412.  
  6413.     * make.texinfo: Fixed some typos and spelling errors.
  6414.  
  6415. Wed Sep  7 14:20:39 1988  Roland McGrath  (mcgrath at helen.Berkeley.EDU)
  6416.  
  6417.     * make.c (decode_switches): Fixed bug wherein a bad option would
  6418.     give a useless error message and loop forever.
  6419.  
  6420. Tue Sep  6 14:36:02 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6421.  
  6422.     * make.texinfo: Documented `shell' function.
  6423.  
  6424.     * variable.c (expand_function): New function `shell', does
  6425.     backquote-style command expansion of its arg.
  6426.  
  6427.     * commands.c (execute_command_line): Second arg OUTBUF, if not nil,
  6428.     gets filled in with a malloc'd buffer containing the piped stdout of
  6429.     the command.
  6430.     (execute_file_commands): Use above (pass nil).
  6431.  
  6432. Mon Sep  5 17:03:49 1988  Roland McGrath  (mcgrath at hecuba.Berkeley.EDU)
  6433.  
  6434.     * Makefile: Added copyright notice.
  6435.     Added a comment about defining `NO_MINUS_C_MINUS_O' if necessary.
  6436.  
  6437.     * Version 3.05.
  6438.  
  6439.     * rule.c (default_suffix_rules): Don't pass `-o' switches with `-c'
  6440.     switches if `NO_MINUS_C_MINUS_O' is #define'd.
  6441.  
  6442.     * make.texinfo: Documented `GNUmakefile'.
  6443.  
  6444.     * read.c (read_all_makefiles): Made it try default makefile
  6445.     `GNUmakefile' before others.
  6446.  
  6447.     * make.texinfo: Added new-style Texinfo header thingies.
  6448.  
  6449. Sat Sep  3 18:09:39 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  6450.  
  6451.     * Version 3.04.
  6452.  
  6453.     * make.texinfo (Chained Rules): Added a @cindex about using
  6454.     .PRECIOUS to preserve intermediate files.
  6455.  
  6456.     * remake.c (update_file_1): Made it not just return before executing
  6457.     commands under -p.
  6458.  
  6459.     * rule.c (default_pattern_rules, default_variables): Made it use
  6460.     `$(AR)' for `ar r' (to put files in archives).
  6461.  
  6462.     * vpath.c (build_vpath_lists): Made it recursively expand the
  6463.     `VPATH' variable (by using variable_expand instead of lookup_variable).
  6464.  
  6465.     * read.c (conditional_line): Made it not swallow whitespace after
  6466.     the comma in an `ifeq' using the `(a,b)' syntax.
  6467.  
  6468.     * rule.c (count_implicit_rule_limits): Made it not crash if a
  6469.     pattern rule dep begins with `/'.
  6470.  
  6471. Sun Aug 28 15:51:12 1988  Roland McGrath  (mcgrath at homer.Berkeley.EDU)
  6472.  
  6473.     * make.texinfo: Clarified that the arg to the `origin' function is a
  6474.     variable *name*, not a reference.
  6475.  
  6476.     * make.texinfo: Clarified that both -Idir and -I dir are allowed.
  6477.  
  6478. Sat Aug 27 13:49:28 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6479.  
  6480.     * remake.c (remake_file): Made touching phonies work right.
  6481.  
  6482. Wed Aug 24 20:40:48 1988  Roland McGrath  (mcgrath at nutmeg.Berkeley.EDU)
  6483.  
  6484.     * make.texinfo: Removed reference to `RANLIB' variable.
  6485.  
  6486.     * Version 3.03.
  6487.  
  6488.     * variables.c (expand_function): Added `origin' function.
  6489.     * make.texinfo: Documented same.
  6490.  
  6491.     * read.c (record_files): Made double-colon entries work.
  6492.  
  6493. Sat Aug 20 21:09:39 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6494.  
  6495.     * make.c (collapse_continuations): Bug fix from RMS.
  6496.  
  6497.     * rule.c (install_default_pattern_rules): Made it set the
  6498.     `in_use' flag of the created rules to zero, rather than letting
  6499.     it be random garbage.
  6500.  
  6501.     * rule.c (pattern_search): Fixed putting `also make' targets into
  6502.     file strucutres.
  6503.  
  6504.     * read.c (record_files): Fixed bug which made double-colon entries
  6505.     make it read off into space.
  6506.  
  6507.     * make.c (decode_switches): Made it understand `ignored' switches
  6508.     rather than dumping core.
  6509.  
  6510. Sun Aug 14 16:49:00 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6511.  
  6512.     * read.c (read_makefile): Made `include' filenames be
  6513.     variable-expanded.
  6514.  
  6515.     * read.c (read_makefile): Fixed an error message.
  6516.  
  6517.     * read.c (read_makefile): Made it accept ^L's as whitespace.
  6518.     * make.c (next_token, end_of_token): Ditto.
  6519.  
  6520.     * vpath.c (vpath_search): Fixed it so that the general VPATH (from
  6521.     the variable) is always checked, even if a selective VPATH (from a
  6522.     directive) matched the filename.
  6523.  
  6524. Sat Aug 13 14:20:46 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6525.  
  6526.     * make.c (decode_switches, main): Made the command switches be
  6527.     processed from a table of switches, variables, and types.  No
  6528.     functions are passed argc and argv any more.  They are passed arrays
  6529.     of strings they need to process.
  6530.     * read.c (read_all_makefiles): Made it take an array rather than
  6531.     argc and argv.
  6532.     (construct_include_path): Ditto.
  6533.  
  6534.     * make.c (collapse_continuations): Made it work right (I hope).
  6535.  
  6536.     * make.texinfo: Minor editorial changes.
  6537.  
  6538.     * read.c (read_makefile): Minor speed improvement by freeing and
  6539.     then mallocing something rather than reallocing it to avoid the
  6540.     unnecessary bcopy.
  6541.  
  6542. Thu Aug 11 00:10:43 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6543.  
  6544.     * make.texinfo: Fixed some unquoted @'s.
  6545.  
  6546.     * make.texinfo: Documented multiple-target pattern rules.
  6547.     Miscellaneous minor editorial changes and corrections.
  6548.  
  6549.     * make.texinfo (Implicit: Catalogue of Rules): Removed the list of
  6550.     variables.  That's what the next section is for.
  6551.     (Implicit: Implicit Variables): Made it agree with reality.
  6552.  
  6553. Wed Aug 10 00:55:39 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6554.  
  6555.     * variable.c (print_variable_data_base): Fixed bug which made -p
  6556.     dump core.  (This was a really idiotic bug.)
  6557.  
  6558.     * rule.c (pattern_search): Fixed a bug which made it make the
  6559.     `also_make' member of the file in question nil if the first of
  6560.     the successful rule's targets was the matching one.
  6561.     Made it use only as much storage as necessary in the `also_make'
  6562.     member.
  6563.     (create_pattern): Made it use only as much storage as necessary in
  6564.     the `lens' and `suffixes' members of the created rule.
  6565.  
  6566.     * remake.c (library_file_mtime): Made it `static'.
  6567.  
  6568.     * file.c: Added a declaration for `errno', which is declared in some
  6569.     <errno.h>'s, but not all.
  6570.  
  6571.     * file.h (struct file): Added `also_make' member for multiple-target
  6572.     implicit rules.
  6573.     * rule.c (pattern_search): Made it put the names of files updated by
  6574.     the given file's commands in its `also_make' member.
  6575.     * remake.c (update_file_1): Made it mark the files in a file's
  6576.     `also_make' member as updated when the file is updated.
  6577.  
  6578.     * variable.c (try_variable_definition): Fixed a bug which made it
  6579.     define a variable with the name of the whole definition when there
  6580.     was no space before the = or :=.
  6581.  
  6582.     * make.texinfo (Features): Made the changes which were made in RCS
  6583.     revision 2.7 but somehow lost since then.  Added -W.
  6584.  
  6585. Tue Aug  9 10:04:50 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6586.  
  6587.     * variable.h: Added `o_default' to `enum variable_origin'.
  6588.     * variable.c (print_variable_data_base): Made it print the origins of
  6589.     the variables.
  6590.     * rule.c (install_default_pattern_rules): Made it define the default
  6591.     variables with origin `o_default'.
  6592.  
  6593.     * make.texinfo: Documented -W.
  6594.  
  6595.     * make.c (decode_switches, main): Added the -W flag to give files a
  6596.     time-stamp of now, for a `what if' effect when used with -n.
  6597.  
  6598.     * commands.c (print_commands): Made it say `(built-in)' for commands
  6599.     that are built into the default ruleset.
  6600.  
  6601.     * read.c (record_file): Made .SUFFIXES get its deps frontwards (again).
  6602.     * rule.c (set_default_suffixes, convert_to_pattern): Made it read
  6603.     .SUFFIXES's deps frontwards, so the converted rules will not be in
  6604.     reverse order.
  6605.  
  6606.     * rule.c (new_pattern_rule): Fixed a bug wherein it would keep
  6607.     searching after it had removed a matching rule and ended up diddling
  6608.     with freed storage.
  6609.  
  6610.     * rule.c (freerule): Made it take the given rule off the chain.
  6611.     (new_pattern_rule, count_implicit_rule_limits): Use freerule to
  6612.     remove rules from the chain.
  6613.  
  6614.     * vpath.c (construct_vpath_list): Made it return after cleaning out
  6615.     all previous searchpaths when given a nil DIRPATH arg, so it won't
  6616.     go into the construction code and dump core dereferencing a nil
  6617.     pointer.
  6618.  
  6619.     * variable.c (patsubst_expand): Fixed a bug which made it not match
  6620.     correctly and sometimes dump core.
  6621.  
  6622. Mon Aug  8 16:35:48 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6623.  
  6624.     * rule.c (default_suffix_rules): Made the .texinfo.dvi rule remove
  6625.     the files used in the comparison to determine whether or not a
  6626.     second TeX run is necessary.
  6627.  
  6628.     * make.texinfo: Fixed some overfull TeX hboxes.
  6629.  
  6630.     * make.texinfo (Implicit: Catalogue of Rules): Fixed a Texinfo error.
  6631.  
  6632.     * rule.c (create_pattern_rule): Fixed bug wherein index was not
  6633.     being passed its second arg.
  6634.  
  6635.     * read.c (getline): Merged back into readline.
  6636.  
  6637.     * rule.c (default_suffixes, default_suffix_rules,
  6638.     default_variables): Added .texinfo.info rule.
  6639.     * make.texinfo (Implicit: Catalogue of Rules): Documented
  6640.     .texinfo.dvi and .texinfo.info rules.
  6641.  
  6642.     * make.texinfo (Top): Changed `last updated' date to be correct (for
  6643.     the last time it was updated, not today).  Changed `for version
  6644.     3.00' since it's not going to be called that.
  6645.  
  6646. Sat Aug  6 19:51:10 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6647.  
  6648.     * commands.c (print_commands): Added this function to print the
  6649.     contents of a `struct commands' for -p.
  6650.     * rule.c (print_rule_data_base): Use above.
  6651.     * file.c (print_file_data_base): Ditto.
  6652.  
  6653.     * rule.c (count_implicit_rule_limits, new_pattern_rule,
  6654.     install_pattern_rule, print_rule_data_base): Made it understand the
  6655.     changed `struct rule' and act accordingly.
  6656.     (freerule): Added this function to free all the storage used by a rule.
  6657.  
  6658.     * rule.c (pattern_search): Made it grok multiple targets of pattern
  6659.     rules.  The matching is done properly, but at present, only the
  6660.     matching pattern's target is used to give deps and commands.
  6661.  
  6662. Fri Aug  5 18:00:29 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6663.  
  6664.     * rule.c (struct rule): Changed name, namelen, and patsuffix members
  6665.     to targets, lens, and suffixes, which are arrays, for multiple targets.
  6666.     (create_pattern_rule): Now takes first arg TARGETS, a nil-terminated
  6667.     array of targets, rather than a single target and patsuffix pointer.
  6668.  
  6669.     * read.c (record_files): If it finds an implicit pattern rule, it
  6670.     collects all the targets into an array and passes the whole thing to
  6671.     create_pattern_rule.  If there are non-pattern targets, it is a
  6672.     fatal error.
  6673.  
  6674. Tue Aug  2 15:06:38 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6675.  
  6676.     * make.c (readline): Split backslash-newline checking from reading
  6677.     and buffer-expanding.
  6678.     (getline): Created to do the reading and buffer-expanding formerly
  6679.     done in readline.
  6680.  
  6681.     * rule.c (pattern_search): Made it reject nonterminal match-anything
  6682.     rules when a specific rule has matched, rather than rejecting
  6683.     terminal match-anything rules in this case.
  6684.  
  6685.     * rule.c (convert_to_pattern): Fixed a bug caused when the change to
  6686.     make it only recognize two-suffix rules whose target suffixes
  6687.     precede their dependency suffixes which made it work in the opposite
  6688.     direction (even worse than it started out).
  6689.  
  6690.     * rule.c (pattern_search): Made it reject nonterminal match-anything
  6691.     rules as intermediate targets when searching for both real and
  6692.     intermediate dependencies, rather than only when searching for
  6693.     intermediate ones.
  6694.  
  6695. Sun Jul 31 00:33:56 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6696.  
  6697.     * rule.c (convert_to_pattern): Made it only recognize two-suffix
  6698.     rules whose target suffix comes before the dependency suffix in the
  6699.     .SUFFIXES list.
  6700.  
  6701.     * variable.c (define_automatic_variables): Made all automatic
  6702.     variables be defined with origin `o_automatic'.
  6703.  
  6704.     * variable.h: Added `o_automatic' to `enum variable_origin'
  6705.  
  6706.     * file.c (remove_intermediates): Made it not print an error message
  6707.     if the error was that the file does not exist.
  6708.  
  6709.     * rule.c: Removed `recursive' member from `struct rule'.
  6710.  
  6711.     * remake.c (library_file_mtime): Made it not use the directory hash
  6712.     functions, as reading in and hashing /usr/lib and /lib is slow and
  6713.     most likely unnecessary.
  6714.  
  6715.     * remake.c (remake_file): Changed message from ``No specification
  6716.     for making'' to ``No way to make'' so it will be short enough that
  6717.     most filenames will fit on a line.
  6718.     Made it look at the `recursive' member of the `struct commands',
  6719.     rather than of the `struct file' (which no longer has one).
  6720.  
  6721.     * commands.c (execute_file_commands): Made it look at the
  6722.     `recursive' member of the `struct commands', rather than of the
  6723.     `struct file' (which no longer has one).
  6724.  
  6725.     * file.h: Removed `recursive' member from `struct file'.
  6726.  
  6727.     * commands.h: Added `recursive' member to `struct commands'.
  6728.  
  6729.     * dep.h: Removed unused `quotedparen' member from `struct nameseq'
  6730.     and `struct dep'.
  6731.  
  6732.     * read.c (dequote): Removed this function.
  6733.     (multi_glob): Removed reference to `quotedparen' member of
  6734.     a `struct nameseq' and calls to dequote.
  6735.  
  6736.     * read.c (record_files): Made it set the stem for $* for all static
  6737.     pattern rules, not just those with commands given at that time.
  6738.     Removed check for recursive commands.
  6739.     Made it check for pairs of .SUFFIXES dependencies to reject as
  6740.     default goals as well as single ones (that don't start with dots).
  6741.     (read_makefile): Added checks for recursive commands to set
  6742.     the `recursive' flag in the `struct commands'.
  6743.  
  6744. Sat Jul 30 15:47:23 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6745.  
  6746.     * make.c (find_next_token): Made the LENGTHPTR arg optionally nil.
  6747.  
  6748.     * make.c: Removed `files_made' variable which is defined static in
  6749.     remake.c and used only there.
  6750.     (main): Cleaned up somewhat.
  6751.     (decode_switches): Cleaned up a bit.  Made an unknown option be a
  6752.     non-fatal error.
  6753.     (decode_env_switches): Made LEN arg unsigned.  Cleaned up.
  6754.     (print_version): Made it say ``see the source'' rather than ``see
  6755.     the source file'', since there is more than one.
  6756.  
  6757.     * file.h: Made `num_intermediates' declared unsigned.
  6758.  
  6759.     * file.c: Made `num_intermediates' variable unsigned.
  6760.     (remove_intermediates): Removed unused FORMAT arg.
  6761.     (enter_file): Made it handle double-colon files properly, adding the
  6762.     new entry as the old entry's prev pointer.
  6763.  
  6764.     * dir.c: Re-indented the `struct dir' definition to be right.
  6765.     (dir_load): Cleaned up slighty.
  6766.     (file_exists_p): Removed comment saying we could use `access', since
  6767.     that is a bad idea (except for setuid programs).  Cleaned up slightly.
  6768.  
  6769.     * commands.c: Changed some comments slightly.
  6770.     (execute_file_commands): Cleaned up a bit.  Changed some comments,
  6771.     added others.  Moved freeing of storage for $^ and $? to the same
  6772.     place as for the other automatic variables.
  6773.     (execute_command_line): Made `#' trigger a shell.
  6774.     Added some comments.  Cleaned up a bit.  Put all the special chars
  6775.     that trigger shells into an array easily changeable at the top.
  6776.  
  6777.     * ar.c: Added comments explaining each function.
  6778.     (ar_scan_1): Merged into ar_member_date.
  6779.     (ar_member_date): Changed call to ar_scan_1 to the body of that
  6780.     function.
  6781.     (ar_member_date_1): Simplified to a ?: expression rather than an
  6782.     if-else statement.
  6783.     (ar_member_touch): Changed error handling around a bit.
  6784.     None of these errors are fatal now.
  6785.  
  6786.     * variable.c (subst_expand): Added a new arg BY_WORD, to do substs
  6787.     only on full words.
  6788.     (patsubst_expand): Fixed bug which made calls whose patterns
  6789.     contained no `%' to not work correctly, by using above.
  6790.     (variable_expand): Pass extra arg to `subst_expand'.
  6791.  
  6792.     * variable.c (expand_function): Fixed bug which made `foreach' calls
  6793.     with one-word lists run off into never-never land.
  6794.  
  6795. Fri Jul 29 20:12:36 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6796.  
  6797.     * variable.c (expand_function): Made a very minor speed improvement
  6798.     by avoiding an unnecessary strlen call.
  6799.  
  6800. Wed Jul 27 16:01:47 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6801.  
  6802.     * rule.c (default_suffixes): Rearranged the list somewhat; added
  6803.     `.el' and `.elc' to speed things up (especially when building
  6804.     Emacs), for the same reason `.h' is there.
  6805.  
  6806.     * read.c (record_files): Changed `lineno' from `long' to
  6807.     `unsigned int'.
  6808.  
  6809. Sun Jul 24 02:15:30 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6810.  
  6811.     * variable.c (expand_function): Eliminated use of `wstok'
  6812.     because it is non-reentrant and unreliable.
  6813.     Fixed a minor bug which would cause something not to be freed.
  6814.     * make.c (wstok): Removed `wstok' because it is no longer used.
  6815.  
  6816.     * variable.c (expand_function): Made `foreach' function put
  6817.     spaces between output texts like it's supposed to.
  6818.     
  6819. Sat Jul 23 17:32:55 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6820.  
  6821.     * rule.c (default_suffixes, default_suffix_rules): Added rule
  6822.     to make %.dvi from %.texinfo.
  6823.  
  6824.     * dir.c (print_dir_data_base): Made it say a bit more.
  6825.  
  6826. Fri Jul 22 23:13:16 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6827.  
  6828.     * make.c (print_data_base): Split this function up into one
  6829.     for each thing.
  6830.     * variable.c (print_variable_data_base): One of the above.
  6831.     * rule.c (print_rule_data_base): Ditto.
  6832.     * file.c (print_file_data_base): Ditto.
  6833.     * dir.c (print_dir_data_base): Ditto.
  6834.  
  6835.     * rule.c (install_pattern_rule): Fixed a bug which caused the
  6836.     terminal and recursive flags to always be zero for rules
  6837.     entered by this function.
  6838.  
  6839.     * make.texinfo (Rules: Double-colon): Added a paragraph
  6840.     explaining the purpose of double-colon rules.
  6841.  
  6842.     * make.texinfo (Implicit: Catalogue of Rules): Updated to
  6843.     reflect new C++, TeX, Web, and Texinfo rules.  Other slight
  6844.     editorial changes.
  6845.  
  6846.     * commands.c (execute_file_commands): Fixed a bug wherein
  6847.     random memory could get written for files with no deps.
  6848.     
  6849. Wed Jul 20 19:30:31 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6850.  
  6851.     * read.c (readline): Fix bug wherein it would not recognize a
  6852.     backslash-newline if the buffer filled up and was enlarged
  6853.     right before reading the newline.
  6854.     
  6855. Tue Jul 19 19:55:02 1988  Roland McGrath  (mcgrath at chilli.Berkeley.EDU)
  6856.  
  6857.     * read.c: Added default suffix rules for .cc (using $(C++),
  6858.     which defaults to `g++', and $(C++FLAGS)), .tex, .dvi, .web
  6859.     and .cweb (using $(TEX), $(WEAVE), $(TANGLE), $(CWEAVE) and
  6860.     $(CTANGLE)).
  6861.     
  6862. Sat Jul 16 21:24:28 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6863.  
  6864.     * Made error formats use %u rather than %ld for line numbers,
  6865.     which are now unsigned int's rather than long's.
  6866.  
  6867.     * read.c (conditional_line): Fixed some bugs caused by use of
  6868.     unsigned int rather than int in one place.
  6869.  
  6870.     * read.c (conditional_line): Put the info about active
  6871.     conditionals in a struct.
  6872.     (read_makefile): Make a new struct of info about conditionals
  6873.     for included makefiles and restore the old one after the
  6874.     included makefile has been read.
  6875.  
  6876.     * read.c (read_makefile): Don't try to read a makefile with
  6877.     name "" after giving an error message because an `include'
  6878.     directive gave no filename.
  6879.  
  6880.     * read.c (read_makefile): Give an error message for
  6881.     non-whitespace text after the filename in an `include' directive.
  6882.  
  6883.     * make.c (error): Take five args, like `fatal'.  It managed to
  6884.     lose with only two.  Is there a better way to do this without vfprintf?
  6885.  
  6886.     * read.c (read_makefile): Commands consisting of only
  6887.     whitespace are not the same as no commands.  I thought I'd
  6888.     fixed this bug months ago; it seems to have come back.
  6889.  
  6890.     * make.c (collapse_continuations): All whitespace around a
  6891.     backslash-newline combination is turned into a single space.
  6892.  
  6893.     * Added COPYING file and copyright notices to all files.
  6894.  
  6895.     * make.texinfo (Running: Goals): Fix a typo.
  6896.  
  6897.     * read.c (do_define): Take an arg for the origin of the
  6898.     variable being defined.
  6899.     (read_makefile): Grok `override define'.
  6900.  
  6901.     * make.texinfo (Variables: Override Directive, Defining):
  6902.     Document the `override define' combination directive.
  6903.  
  6904.     * ar.c (ar_member_date): Make a 0 return from `ar_scan' return
  6905.     (time_t) -1 (nonexistent file), rather than (time_t) 0, which,
  6906.     when put in the `struct file', makes `file_mtime' try to get
  6907.     the mtime over and over again.
  6908.  
  6909.     * variable.c (pattern_matches): Fix a bug that made patterns
  6910.     not beginning with `%' never match.
  6911.     
  6912. Fri Jul 15 21:01:44 1988  Roland McGrath  (mcgrath at tully.Berkeley.EDU)
  6913.  
  6914.     * Took Make out of RCS.
  6915.  
  6916.     * Split the monolithic `make.c' into several smaller files.
  6917.  
  6918. Local Variables:
  6919. eval: (if (fboundp 'change-log-mode) (change-log-mode) (indented-text-mode) (setq left-margin 8))
  6920. End:
  6921.